negative caching caches responses that should never be cached
-------------------------------------------------------------
Key: TS-825
URL: https://issues.apache.org/jira/browse/TS-825
Project: Traffic Server
Issue Type: Bug
Components: HTTP
Affects Versions: 2.1.4, 2.1.5, 2.1.6, 2.1.7, 2.1.8, 2.1.9
Reporter: William Bardwell
Priority: Minor
If you turn on negative caching almost all status codes are cached. But some
of those status codes can not be reasonably cached IMHO and so I would propose
not caching 401, 303 and 407 statuses. (The negative caching code ends up
marking just about everything as cacheable, and then later decides that some
stuff is 'negative cacheable' but things that aren't negative cacheable are
still just cached, and there is no way to say 'never cache this'. So you just
have to add clauses to HttpTransact::is_response_cacheable(), which is what my
patch does.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira