How can I check that nginx is serving the .gz version of static files, if they exist?
I compiled nginx with the gzip static module, but I don\'t see any mention of the .
Change the content of the non-gzipped file. And then touch
both files (simultaneously—that is: in the same instantiation of touch
). If when you load the file in an browser (cache-wiped) you get the non-changed file, then nginx served the static-cached-gzipped file.
An easy way to avoid “did I just fetch the cache?” worries is to fetch from the command-line with curl
since curl doesn’t cache.