workbox-strategies
/ getCacheKeyForURL
should account for CORS
#3024
Labels
Needs More Info
Waiting on additional information from the community.
Library Affected:
workbox-strategies
Browser & Platform:
Issue or Feature Request Description:
Using
StaleWhileRevalidate
with URLs (ieapi.example.com
) thataccess-control-allow-origin: google.com
, etc)Cache-Control: public, max-age: ...
)app.example.com
andexample.com
)will produce CORS errors on the second visited domain with a CORS error saying the resource is for the first domain.
Since getCacheKeyForURL only accounts for
location.href
and notOrigin
, then the response of the first domain is given as a cached response to the second.The text was updated successfully, but these errors were encountered: