• I am successfully running W3TC on a website of mine with Page/Database/Browser cache and Minify.

    Only every time I purge the cache, the minified files are not loading on the first page load. Only after a refresh of the page it loads the minified CSS/JS correctly. But manually visiting pages after a purge is not very handy.

    I am using a Nginx webserver with PHP7.
    Hope someone can help me out here!

Viewing 3 replies - 1 through 3 (of 3 total)
  • That’s how all the caching and minifying plugins work. They work *after* the first load.

    But manually visiting pages after a purge is not very handy.

    Automate it. Warning: It can slow-down the overall time to publish / update. Shameless plug: That was my little plugin!

    Thanks for your reply.
    I understand the working of these kinds of plug-ins, so probably I wasn’t very clear: the first load of pages are distorted, showing no markup and without JS, because the minified files cannot be found (404), only after a refresh it works.

    This is the first time that I encounter this problem with W3TC, I have used it many times already.

    Oops. Sorry. It was my misunderstanding.

    I see that the plugin hasn’t had an update for 2 months. So, was there anything changed on your end?

    Did you try turning-on debugging (in WordPress) to see any clues?

    I don’t use W3TC (even though I regard it highly especially for the CDN integration). So, I don’t know what causes 404 on the first load.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘W3TC minify not working on first page load’ is closed to new replies.