• Resolved mattquist

    (@mattquist)


    Hi,

    I’d really like a couple of options adding to this plugin to allow me to choose to a) not have WP-Optimize create static gzipped assets, and b) not create a JSON logfile of the minification.

    Right now, I’m running with just the minify option enabled, and for my minified CSS & JS, I get 3 output files for every input file:

    eg, under /wp-content/cache/wpo-minify/1741791916/assets I see:

    wpo-minify-footer-3e9d58f0.min.js
    wpo-minify-footer-3e9d58f0.min.js.gz
    wpo-minify-footer-3e9d58f0.min.js.json

    please could we have 2 options under minify, 1 to elect not to create the .gz file, which I’m not using anyway, and 1 to elect not to create the .json file, which I don’t believe is necessary?

    Also, I’d like to use the cache option of the plugin, but again, I’d like an option for cached files to elect not to create the .gz file, as I’d rather let my server and upstream cache take care of the compression.

    Having searched through this support forum, I don’t think I’m the only person who is after this, but I appreciated we’re a less common config 😉

    hoping you might be able to help,
    many thanks
    Matt

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Damilare

    (@deabiodun)

    Hi @mattquist,
    Thanks for the suggestions.
    I’ll pass your request across to the development team to see if this can be implemented. Perhaps a filter can be provided to exclude unwanted versions. However, please note that the three file types generated by minify serve different purposes.

    While the .min.js file is the actual minified script that a website would load, the .min.js.gz is a GZIP-compressed version for servers supporting GZIP compression and is served when the visitor’s browser requests a GZIP version. This also ensures faster site load times as the .min.js.gz version is usually 3 or more times smaller than the plain .min.js.

    As for the the .min.js.json file, this it basically keeps metadata information about the minified assets and is required in tracking components of each minification asset. Removing it or preventing its creation is likely nota good idea.

    In any case, I’ll pass your message across.

    Regards,
    Damilare.

    Thread Starter mattquist

    (@mattquist)

    Hi Damilare,

    thanks so much for your reply. I now understand that the json files for the minify are needed. To understand why I’d like the option to prevent the minified .gz files being created, on my hosting .htaccess files aren’t processed, so I don’t have any rewrite rules to redirect from the .css to the .css.gz or from the .js to the .js.gz so it’s a waste of processor cycles to create those files. It doesn’t matter much performance wise that I’m not using them, as mod_deflate or mod_brotli will compress them the first time they’re served, and the upstream cache will cache the compressed version for subsequent requests. This seems a pretty valid config, and good reason to request the option to not generate the minify .gz files.

    many thanks
    Matt

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘feature request’ is closed to new replies.