WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. kbeezie
    Member
    Posted 3 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

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. danieljrobertson
    Member
    Posted 3 years ago #

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

  3. kw2
    Member
    Posted 3 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

    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)

  4. frg
    Member
    Posted 3 years ago #

    @ 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

  5. Frederick Townes
    Member
    Plugin Author

    Posted 3 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

About this Topic