Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alttiri/content-disposition-by-sw

[demo] Service worker returns response with `Content-Disposition` header.
https://github.com/alttiri/content-disposition-by-sw

content-disposition demo service-worker site

Last synced: 5 days ago
JSON representation

[demo] Service worker returns response with `Content-Disposition` header.

Awesome Lists containing this project

README

        

# content-disposition-by-sw

It's the demo site where Service Worker returns a responce with set Content-Disposition header with non ASCII characters (`"123---ใƒ•ใ‚กใ‚คใƒซ---๐Ÿ’งโšก๐Ÿ”ฅ---xxx.txt"`) for the requests are performed
on https://alttiri.github.io/content-disposition-by-sw/
to `./xxx-0`, `./xxx-1`, `./xxx-2` URLs.

Note: Due to Chromium's bug it's not possible to correctly set [Binary String](https://developer.mozilla.org/en-US/docs/Web/API/DOMString/Binary)
([ByteString](https://developer.mozilla.org/en-US/docs/Web/API/ByteString)) as a header value in Service Worker.

**Use Desktop Firefox for this demo.**