You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the static adapter, using both precompress and fallback options generates differen build/index.html and build/index.html.gz.
i.e. if the Gzip file is decompressed, it's content does not exactly match the one of the plain html file. The relative paths in the Gzip file becomes prefixed with a dot.
This leads to an issue when Gzip content is provided over the wire and certification are calculated on the client side.
Describe the bug
With the static adapter, using both
precompress
andfallback
options generates differenbuild/index.html
andbuild/index.html.gz
.i.e. if the Gzip file is decompressed, it's content does not exactly match the one of the plain html file. The relative paths in the Gzip file becomes prefixed with a dot.
This leads to an issue when Gzip content is provided over the wire and certification are calculated on the client side.
svelte.config
:generated
index.html
:generated unzipped
index.html.gz
:Reproduction
git clone https://github.com/peterpeterparker/my-app-gzip
cd my-app-gzip
npm i
npm run build
cd build
cp index.html.gz test.html.gz
gunzip test.html.gz
diff index.html test.html
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: