Bug 198358 - fetch({cache:'no-cache'}) does not respect cache-control:immutable
Summary: fetch({cache:'no-cache'}) does not respect cache-control:immutable
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Service Workers (show other bugs)
Version: Safari 12
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-05-29 19:05 PDT by Ben Kelly
Modified: 2019-05-29 21:20 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Kelly 2019-05-29 19:05:14 PDT
While investigating crbug.com/611416#c57 I build a glitch demo to test cache-control:immutable behavior:

https://cache-control-immutable-test.glitch.me

It appears that safari 12 triggers a revalidation for fetch({cache: 'no-cache'}) even if the response has cache-control:immutable.  Neither Firefox or Edge 18 do this.

In addition, I believe there was some consensus for making fetch({cache:'no-cache'}) respect immutable in (although I might be reading it in a biased way):

https://github.com/whatwg/fetch/issues/308

(I'm putting this in service workers since fetch() is used there.  Not sure if there is a better component.)
Comment 1 Radar WebKit Bug Importer 2019-05-29 21:20:40 PDT
<rdar://problem/51249843>