Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-127

Make Solr more friendly to external HTTP caches

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3
    • None
    • None

    Description

      an offhand comment I saw recently reminded me of something that really bugged me about the serach solution i used before Solr – it didn't play nicely with HTTP caches that might be sitting in front of it.

      at the moment, Solr doesn't put in particularly usefull info in the HTTP Response headers to aid in caching (ie: Last-Modified), responds to all HEAD requests with a 400, and doesn't do anything special with If-Modified-Since.

      t the very least, we can set a Last-Modified based on when the current IndexReder was open (if not the Date on the IndexReader) and use the same info to determing how to respond to If-Modified-Since requests.

      (for the record, i think the reason this hasn't occured to me in the 2+ years i've been using Solr, is because with the internal caching, i've yet to need to put a proxy cache in front of Solr)

      Attachments

        1. CacheUnitTest.patch
          40 kB
          Thomas Peuss
        2. CacheUnitTest.patch
          32 kB
          Thomas Peuss
        3. HTTPCaching.patch
          56 kB
          Chris M. Hostetter
        4. HTTPCaching.patch
          53 kB
          Chris M. Hostetter
        5. HTTPCaching.patch
          53 kB
          Chris M. Hostetter
        6. HTTPCaching.patch
          30 kB
          Chris M. Hostetter
        7. HTTPCaching.patch
          29 kB
          Chris M. Hostetter
        8. HTTPCaching.patch
          34 kB
          Chris M. Hostetter
        9. HTTPCaching.patch
          33 kB
          Thomas Peuss
        10. HTTPCaching.patch
          31 kB
          Thomas Peuss
        11. HTTPCaching.patch
          31 kB
          Thomas Peuss
        12. HTTPCaching.patch
          30 kB
          Thomas Peuss
        13. HTTPCaching.patch
          38 kB
          Thomas Peuss
        14. HTTPCaching.patch
          38 kB
          Thomas Peuss
        15. HTTPCaching.patch
          38 kB
          Thomas Peuss
        16. HTTPCaching.patch
          38 kB
          Thomas Peuss
        17. HTTPCaching.patch
          22 kB
          Thomas Peuss
        18. HTTPCaching.patch
          19 kB
          Thomas Peuss
        19. HTTPCaching.patch
          9 kB
          Thomas Peuss
        20. HTTPCaching.patch
          7 kB
          Thomas Peuss
        21. HTTPCaching.patch
          7 kB
          Thomas Peuss
        22. HTTPCaching.patch
          7 kB
          Thomas Peuss
        23. HTTPCaching.patch
          6 kB
          Thomas Peuss
        24. HTTPCaching.patch
          7 kB
          Thomas Peuss
        25. HTTPCaching.patch
          5 kB
          Thomas Peuss
        26. HTTPCaching.patch
          4 kB
          Thomas Peuss
        27. HTTPCaching.patch
          3 kB
          Thomas Peuss

        Issue Links

          Activity

            People

              hossman Chris M. Hostetter
              hossman Chris M. Hostetter
              Votes:
              3 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: