Bug 60571 - ApplicationCache: feature request - an https manifest should be able to list resources from other https origins.
Summary: ApplicationCache: feature request - an https manifest should be able to list ...
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 62250
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-10 12:43 PDT by Michael Nordman
Modified: 2024-01-29 12:39 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Nordman 2011-05-10 12:43:47 PDT
This is explicitly disallowed by the the spec but the rationale doesn't hold up under scrutiny.

Prohibiting cross-origin HTTPS from appcaching really doesn't defend against the attack that it tried to defend against because HTTPS resources can just as easily end up in the usual browser cache. The point of excluding them is to prevent an attacker with physical access to the system from stealing those resources. But unless there's a cache-control "no-store" header, they'll be in the browser cache anyway.

So the feature request is allow cross-origin HTTPS resources but respect the "no-store" header, if that header is present the resource won't be cached and the appcache update will fail.

This has already been done in the chromium project and has been brought up on the whatwg list and public-webapps list.
http://code.google.com/p/chromium/issues/detail?id=69594
Comment 1 Alexey Proskuryakov 2011-05-11 09:20:33 PDT
> But unless there's a cache-control "no-store" header, they'll be in the browser cache anyway.

I'm surprised to hear that, and I don't think that it's accurate in general. It's definitely not the case for Safari.
Comment 2 Michael Nordman 2011-05-17 10:02:23 PDT
(In reply to comment #1)
> > But unless there's a cache-control "no-store" header, they'll be in the browser cache anyway.
> 
> I'm surprised to hear that, and I don't think that it's accurate in general. It's definitely not the case for Safari.

Chrome and Firefox will cache https resources on disk. Viewing about:cache in each of those browsers easily confirms it.

(Hey... Firefox's about:cache page looks really nice. I wonder if the WebInspector team would consider pages like these are part of their charter too.)
Comment 3 Ahmad Saleem 2024-01-29 12:31:56 PST
After this commit (Disable `AppCache` everywhere):

https://github.com/WebKit/WebKit/commit/6f399c42909b07a4da0c6c0d6baab1b578dd610e

Is this applicable?
Comment 4 youenn fablet 2024-01-29 12:39:26 PST
I plan to remove the appcache code, hopefully this week.