-
Notifications
You must be signed in to change notification settings - Fork 349
Fetching with a particular destination #521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Updated the title to reflect type being folded into destination, but the same general concern applies. Consider, a site safelists |
@jakearchibald do you still wish to pursue this? |
@annevk it isn't something I've had many requests for. The main use case is when caching content, you want the correct accept header for images. Happy to close for now until we work out the CSP parts. |
I assumed that the accept headers are set before the SW gets the request (and therefore passed along when |
nm. I thought this is somewhat similar to #717 but re-reading this, the use-case is about creating a |
@yoavweiss yeah, but the accept header for webP isn't there if you do |
Some browsers will change their headings based on the type of request, eg Chrome will include
image/webp
in theAccept
header for image requests.Should we have an API to create requests that contain these details? Eg
Request.as('image', url, opts)
.Moved from w3c/ServiceWorker#945
The text was updated successfully, but these errors were encountered: