I've been using Nginx with W3TC just fine for a while except for one small detail. The Gzip static module for Nginx only looks for the extension .gz , but W3TC saves the gzipped cache copy as .gzip which isn't very conventional, and won't be picked up by the Nginx Webserver. Is there any way to change this so that it saves the compressed copies as .gz and not .gzip
http://wordpress.org/extend/plugins/w3-total-cache/
danieljrobertson
Member
Posted 1 year ago #
I agree. If no one has already done this, I will look at modifying the plugin.
I did not try it. But I had a problem, that W3TC didn't use any extension at all.
Perhaps you could use
'encodeMethod' => 'gz' // instead of 'gzip' or '' (default)
in wp-content/plugins/w3-total-cache/lib/Minify/Minify/Controller/Base.php
http://kenntwas.de/2011/tips/tools-allgemein/english-version-wordpress-get-w3tc-0-9-2-1-running-with-minify-and-gzip-compression/#set-encodeMethod-to-gzip
(the redirectrules are for apache)
@ kw2
since your fix for apache REALLY WORKS this change to gz sounds reasonable.
i made a short HowTo here:
http://wordpress.org/support/topic/plugin-w3-total-cache-how-i-got-my-w3tc-working-with-minify-gzip
gzip is used because gz is not compatible with some versions of safari.