GNOME Bugzilla – Bug 640556
gcc 4.6 complains about soup-cache.c
Last modified: 2011-01-31 21:35:24 UTC
"must_revalidate" in soup_cache_has_response() is set, but never used. I think the attached patch is correct... (setting a cache-control flag on a request shouldn't permanently change the attributes of the cached response, right?)
Created attachment 179300 [details] [review] soup-cache: fix a warning (and a bug) If a request specifies "Cache-Control: max-age=0", revalidate the response, but don't mark the cache entry as "must_revalidate", since the need for revalidation applies only to the current request.
(In reply to comment #0) > "must_revalidate" in soup_cache_has_response() is set, but never used. I think > the attached patch is correct... (setting a cache-control flag on a request > shouldn't permanently change the attributes of the cached response, right?) Yeah, I think you're right, makes no sense to force revalidation forever.
Attachment 179300 [details] pushed as d9bf1c0 - soup-cache: fix a warning (and a bug)