GNOME Bugzilla – Bug 649965
SoupCache: store the HTTP status code in the cache (and use it)
Last modified: 2011-06-16 15:24:03 UTC
The cache should use the same HTTP status code returned by the server when generating replies.
Created attachment 187629 [details] [review] Keep track of the HTTP status code Store and use the HTTP code for cache replies.
Created attachment 187630 [details] [review] Set status code and headers in SoupMessage when generating replies The cache was not correctly setting neither the status code nor the response headers in the SoupMessage used to reply a request when a revalidation was needed. On the contrary we were incorrectly setting the headers in the SoupMessage used to revalidate the resource.
Adding a dependency as one of the patches changes the GVariant format used by the cache.
Comment on attachment 187629 [details] [review] Keep track of the HTTP status code ok as is, but should we store the reason_phrase and http_version too?
Comment on attachment 187630 [details] [review] Set status code and headers in SoupMessage when generating replies oops, forgot to review this one before. looks good
Committed 84486ca56799d50fea090cda96622444a2722a9b