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

Give RequestHandlers the possiblity to suppress the generation of HTTP caching headers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3
    • 1.3
    • search
    • None

    Description

      The code from SOLR-127 emits HTTP cache headers for all handlers if configured. We should not emit cache related headers for update request handlers. Partial responses (coming from the Timeout request stuff) should not be cached as well.

      To solve this problem we can simply add two methods to the SolrQueryResponse class (like void setAvoidHTTPCaching(boolean) and boolean isAvoidHTTPCaching() - the default for the value would be false). The update request handlers should set this to true all the time. The partial response stuff can set this to true as well.

      Attachments

        1. SOLR-505.patch
          8 kB
          Thomas Peuss
        2. SOLR-505.patch
          10 kB
          Thomas Peuss
        3. SOLR-505.patch
          14 kB
          Thomas Peuss

        Issue Links

          Activity

            People

              otis Otis Gospodnetic
              tpeuss Thomas Peuss
              Votes:
              3 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: