W3 Total Cache
Change gzip extension to gz (5 posts)

  1. kbeezie
    Posted 5 years ago #

    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


  2. danieljrobertson
    Posted 5 years ago #

    I agree. If no one has already done this, I will look at modifying the plugin.

  3. kw2
    Posted 5 years ago #

    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

    (the redirectrules are for apache)

  4. frg
    Posted 5 years ago #

    @ kw2
    since your fix for apache REALLY WORKS this change to gz sounds reasonable.

    i made a short HowTo here:


  5. Frederick Townes
    Plugin Author

    Posted 5 years ago #

    gzip is used because gz is not compatible with some versions of safari.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic