• Autoptimize seems to recreate the cached files every single webpage load.
    I don’t have any scripts that change continuously but i’m using W3TotalCache.

    Is there anyway to fix this behaviour? Autoptimize shouldn’t recreate the minified files every single time because my cached files don’t change. But it seems it’s doing it.

    any advise?

    https://www.ads-software.com/plugins/autoptimize/

Viewing 1 replies (of 1 total)
  • Plugin Author Frank Goossens

    (@futtta)

    Well, this is the way W3TC + AO (should) work;

    1. page is requested
    2. W3TC checks if the page is in cache (HTML including references to Autoptimized CSS & JS) and if so sends that as response to the browser
    3. if not in cache, WordPress creates the HTML
    4. AO receives the HTML, aggregates the CSS & JS and checks if it has a minified version in cache of exactly the same code (to the last comma) and if so replaces all original CSS/ JS with links to the optimized CSS/ JS in cache
    5. if not in cache, the CSS/ JS is minified, cached and replaces all original CSS/ JS with links to the optimized CSS/ JS in cache
    6. AO returns HTML to wordpress
    7. W3TC caches HTML
    7. HTML is sent as reponse to the browser

    So if your CSS/ JS are recreated time and time again, there are 2 things happening;
    1. W3TC is not able to cache pages (else AO is not even called; the HTML has links straight to the cached CSS/JS)
    2. AO does see differences in the code (however small).

    Do you have a URL where I could have a look to find confirmation of these “theories”? ??

    frank

Viewing 1 replies (of 1 total)
  • The topic ‘Problem with extremely slow First Byte’ is closed to new replies.