GNOME Bugzilla – Bug 642028
Do not cache multipart/x-mixed-replace content
Last modified: 2011-02-16 10:33:34 UTC
That MIME type is used by servers to implement what it's normally called server push. It's typically used to "stream" video from webcams. Makes no sense to cache those resources as they always change.
Created attachment 180578 [details] [review] Patch
Comment on attachment 180578 [details] [review] Patch it really seems like this should be the responsibility of the server to indicate the resource's non-cacheability... but anyway: >+ content_type = soup_message_headers_get_content_type (msg->response_headers, NULL); >+ if (content_type && !g_ascii_strncasecmp(content_type, "multipart/x-mixed-replace", 25)) The docs aren't totally clear, but the return value of soup_message_headers_get_content_type() is just the MIME type part, so you don't need strncasecmp. Also, you need a space between the function name and the open paren. OK to commit with those fixes.
Committed 611655c62596e9d925ee6b47a00bd8812a84b77b