You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2011/06/08 22:17:59 UTC

[jira] [Commented] (TS-825) negative caching caches responses that should never be cached

    [ https://issues.apache.org/jira/browse/TS-825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046186#comment-13046186 ] 

Leif Hedstrom commented on TS-825:
----------------------------------

I have tested / verified that this does indeed turn those three return codes uncacheable.

> 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.9, 2.1.8, 2.1.7, 2.1.6, 2.1.5, 2.1.4
>            Reporter: William Bardwell
>            Assignee: Leif Hedstrom
>            Priority: Minor
>             Fix For: 3.1.0, 3.0.0
>
>         Attachments: negative-caching-patch.diff
>
>
> 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