Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1904

set response cache control to -1 for JsServlet when response code is 304

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.5.0-beta5
    • 2.5.0-beta6
    • Java
    • None

    Description

      We've encountered problems that a proxy sitting in front of a Shindig server is reading the cache control to determine whether or not to cache the content in the proxy. It is problematic because the cache control max age defaults to 0 in case of 304 response code in JsServlet.
      We expect the cache control indicate that the response should be cached in browser indefinitely.
      The proposed fix is to set -1 as cacheTtl in the JsResponseBuilder and pass that cacheTtl value back into the JsServlet response header.

      Attachments

        1. w3.patch
          1 kB
          Marshall Shi
        2. SHINDIG-1904.patch
          2 kB
          Stanton Sievers

        Activity

          People

            ssievers Stanton Sievers
            marshall_601 Marshall Shi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified