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
Check is something is served compressed using gzip:
Make a request with the Accept-Encoding: "gzip" header, then verify if the response is served with the Content-Encoding: "gzip" header and the body of the response starts with 1f 8b.
SVGZ should be served with the Accept-Encoding: "gzip" header as they are compressed by default.
Zopfli
Check is something is served compressed using Zopfli:
Same as with gzip, just that we need to detect Zopfli.
What should be compressed with Zopfli:
Same as with gzip.
Note(s):
We will need to a check if WOFF fonts use Zopfli compression internally.
Brotli
Check is something is served compressed using Brotli.
Make a request with the Accept-Encoding: "br" header, then verify if the response is served with the Content-Encoding: "br" header (no magic numbers?).
gzip
Check is something is served compressed using
gzip
:Make a request with the
Accept-Encoding: "gzip"
header, then verify if the response is served with theContent-Encoding: "gzip"
header and the body of the response starts with1f 8b
.What should be compressed with
gzip
:file extension(s)
media types(s)
.atom
application/atom+xml
.appcache
text/cache-manifest
.bmp
image/bmp
.css
text/css
.cur
image/x-icon
image/vnd.microsoft.icon
.eot
application/vnd.ms-fontobject
.ico
image/x-icon
image/vnd.microsoft.icon
.html
.htm
...
text/html
application/xhtml+xml
.htc
text/x-component
.js
application/javascript
text/javascript
.json
...
application/json
application/<something>+json
.otf
font/opentype
.rdf
application/rdf+xml
.rss
application/rss+xml
.map
application/json
.svg
image/svg+xml
.ttc
.ttf
application/x-font-ttf
.txt
text/plain
.vcard
vcf
text/vcard
.vtt
text/vtt
.xml
...
application/xml
text/xml
application/<something>+xml
.webmanifest
.json
application/manifest+json
Notes:
WOFF
fonts should not be compressed (see: Serve WOFF 1.0 font files compressed? h5bp/server-configs-apache#42).SVGZ
should be served with theAccept-Encoding: "gzip"
header as they are compressed by default.Zopfli
Check is something is served compressed using
Zopfli
:Same as with
gzip
, just that we need to detectZopfli
.What should be compressed with
Zopfli
:Same as with
gzip
.Note(s):
WOFF
fonts useZopfli
compression internally.Brotli
Check is something is served compressed using
Brotli
.Make a request with the
Accept-Encoding: "br"
header, then verify if the response is served with theContent-Encoding: "br"
header (no magic numbers?).Note:
Brotli
compressed responses should be served only over HTTPS.What should be compressed with
Brotli
:Same as with
gzip
.Note: This is just a starting point, we will probably split this into more specific issues / rules.
The text was updated successfully, but these errors were encountered: