• Resolved zeuspress

    (@zeuspress)


    I have css and js set to minify, plus http/2 option checked for both.

    Google showed 6 files being loaded that weren’t being used.

    I finally figured out that 6 minified files are being loaded, along with the same (and larger) 6 unminified versions, which I think kind of defeats the purpose. Is there a way that only the min files are called?

    I’ve seen same/similar issues in the forum, but there wasn’t enough there that I was able to use to correct the situation. I’m sorry, but my skill is limited to installing plugins and changing its settings.

    Is there a link to documentation that I might be able to use get the settings right so only the minified files are called?

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @zeuspress

    Thank you for reaching out and I am happy to assist you with this.
    As I can see you’re also using the CDN and pushing the static files to the CDN.
    You are correct when you say that once the files are minified, the original files should not be showing/loading.
    I’ve mentioned CDN and I can see the Perma-cache header. Perma-Cache is a secondary permanent cache layer, that sits between the CDN and your origin
    This means that you have multiple layers of caching and there is a chance that those files are stuck in a cache somewhere.
    Make sure to Purge W3 Total Cache, Your CDN, and Perma cache and see if the problem persists.
    Thanks!

    Thread Starter zeuspress

    (@zeuspress)

    Hello Marko,

    Thank you for the extremely quick response. I saw from one of the previous similar support requests that purging was suggested. I did that before, but did it again multiple times (W3, CDN, Perma-cache) then I even disabled Perma-cache. Still no change, 6 css and js files plus another 6 minified versions of those same files.

    Would removing css and js from one or both “file types to upload” lines help because both pre and post minification files are being sent to the CDN, so it’s serving both because it can’t tell the difference?

    Thank you.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @zeuspress

    Thank you for yoru reply.
    Can you please add those files to Performance>CDN>Rejected files:
    for example:/wp-content/themes/generatepress/assets/css/components/widget-areas.min.css?ver=3.1.3

    Can you also please share the .htaccess file so I can check if there are any rewrite rules that may be conflicting?
    Thanks!

    Thread Starter zeuspress

    (@zeuspress)

    Hello Marko,
    Adding the files to the Rejected files box as you suggested did the trick. Thank you for the quick response and help. I’m going to review the plugin, something I should have done long ago. Thanks again.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @zeuspress

    I am glad that the problem is resolved!
    You are most welcome and thanks for the awesome review!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Un-minified css & js files + minified files both served’ is closed to new replies.