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

HttpResponses should use negativeCacheTtl for negative cache exempt statuses if the response has no cache-control or expires headers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.5.0-beta6
    • 2.5.3
    • Java
    • None

    Description

      org.apache.shindig.gadgets.http.HttpResponse.getCacheExpiration() utilizes a list of negative-cache-exempt HTTP returns statuses that by default contains 401 and 403 statuses. These exempt status codes will then try to use Cache-Control and Expires headers to figure out how long lived the response should be. If no Cache-Control or Expires headers exist on the response, the default cache time-to-live is uses, even if the response was a 401 or 403.

      I would rather use the negative cache time-to-live in this case.

      Attachments

        Activity

          People

            ssievers Stanton Sievers
            ssievers Stanton Sievers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: