GNOME Bugzilla – Bug 741108
Unnecessary conditional requests after a resource has been revalidated
Last modified: 2014-12-05 08:13:42 UTC
The problem is that soup_cache_send_response() is always adding an Age header to the response, causing the resource to be considered expired when it's requested again.
Created attachment 292123 [details] [review] cache: Do not add Age header to all responses Commit message explains the reasoning
As I told Carlos on IRC I think he's right and that I got mislead when I read the spec. The first sentence seems to imply that any request served by the cache must carry that Header. The fact is that as soon as we need to issue a conditional request the cached resource becomes "first hand" as if it was served by the remote host even though the actual data comes from the cache. Summarizing it's a lgtm.
Comment on attachment 292123 [details] [review] cache: Do not add Age header to all responses >approach that is comptaible with other browsers and RFC compliant is to typo "comptaible" otherwise, lgtm
Comment on attachment 292123 [details] [review] cache: Do not add Age header to all responses Pushed to git master