You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Stanton Sievers (JIRA)" <ji...@apache.org> on 2013/04/01 20:21:14 UTC
[jira] [Created] (SHINDIG-1915) HttpResponses should use
negativeCacheTtl for negative cache exempt statuses if the response has no
cache-control or expires headers
Stanton Sievers created SHINDIG-1915:
----------------------------------------
Summary: HttpResponses should use negativeCacheTtl for negative cache exempt statuses if the response has no cache-control or expires headers
Key: SHINDIG-1915
URL: https://issues.apache.org/jira/browse/SHINDIG-1915
Project: Shindig
Issue Type: Bug
Components: Java
Affects Versions: 2.5.0-beta6
Reporter: Stanton Sievers
Assignee: Stanton Sievers
Fix For: 2.5.0
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira