DescriptionIn the CacheEnforcementVisitor, reserve nodes whose response is either StrictNoCache, or has a Set-Cookie header, and do not trigger a fetch for these. Changed the flow to not pre-fetch error responses, since error responses are already set to have a ttl of 30 secs. Also, do not pre-fetch resources with a max-age of 0 since they will not be usable by the time the actual request comes in.
Also, the HttpResponse class returns -1 for cache expiration time for any strict no-cache resource. Since we want to know when such responses expire, adding the property 'shindig.cache.http.negativeCacheTtl'(also used in AbstractHttpCache), which if less than zero retains original behavior(of expiration time -1), and otherwise returns the actual expiration time of such resources.
Patch Set 1 #Patch Set 2 : Fixing unused imports #Patch Set 3 : minor fixes #Patch Set 4 : new patch #Patch Set 5 : Readability fixes #
Total comments: 4
Patch Set 6 : Addressing satya's comments #
Total comments: 10
Patch Set 7 : Addressing satya's comments #Patch Set 8 : Function name fix #
Total comments: 1
MessagesTotal messages: 8
|
|||||||||||||||||||||||||||||||||||||