Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 752 Bytes
# https://emscripten.org/docs/compiling/WebAssembly.html#web-server-setup
RemoveType .gz
AddEncoding x-gzip .gz
AddType application/octet-stream .data
AddType application/octet-stream .em
AddType application/wasm .wasm
# CPU-intensive, better pre-gzip
#AddOutputFilterByType DEFLATE application/wasm
# Force browser to check if cache needs to be refreshed or not (304) for XHR
# (preserve browser cache, but revalidate)
<IfModule mod_headers.c>
Header set Cache-Control "max-age=0"
</IfModule>
# Disable ETags which don't play nice with mod_gzip and HTTP/1.1
# (ETags come in handy if you need to rollback to an older version though)
#<IfModule mod_headers.c>
# # Generated ETags
# Header unset ETag
#</IfModule>
## Static ETags
#FileETag None
You can’t perform that action at this time.