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

HTTP Caching related headers are incorrect for distributed searches

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.4
    • None
    • None
    • None

    Description

      When searching across multiple shards with HTTP caching enabled, the Caching related headers (ETag, Cache-Control, Last-Modified) in the response are based on the "index" of the coordinating solr core, and are not influenced by the properties of the shards. For example, take the query

      http://localhost:8983/solr/core1/select/?q=google&shards=localhost:8983/solr/core2,localhost:8983/solr/core3

      ETag should be calculated off of core2 and core3, instead it's being calculated from the index of core1.

      This results in index modificaitons to to core2 or core3 being "invisible" to clients which query this URL using "If-None-Match" or "If-Modified-Since" type requests

      Attachments

        Activity

          People

            Unassigned Unassigned
            cjackson Charlie Jackson
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: