• Resolved pstidsen

    (@pstidsen)


    Hi there,

    I have a problem on this site regarding the minify/combine feature.

    1. I make some changes in my style.css file in the child theme
    2. I purge all cache
    3. The CSS change does not apply on the site

    4. I deactivate CSS minify
    5. The CSS change does apply on the site

    How can I get W3 to use the newest version of the style.css file?

    Best Regards,
    Peter B. Stidsen

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

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

    (@vmarko)

    Hello @pstidsen

    Thank you for your inquiry and I am happy to assist you with this.
    This occurs because those files have been cached in the user’s browser from a previous visit and the cached version is served instead of the most recent version. The expiration of this cache is called time to live, or TTL and it is associated with this local cache in your browser, which is why it will show the old version until this length of time has passed. To see the correct version of the files, the user has to either clear the browser’s local cache & reload the page or do a hard refresh of the page by pressing Ctrl+F5 to ensure their browser is using the latest file versions.

    When a user tries to access the URL, and the browser starts fetching the page data, it sees that it already has the page’s stylesheet E.G. style.css, and says “Wait!, I already have this file cached, so I don’t need to fetch it again and can just present that to the visitor”. And the Browser has a point!
    In this case, you can use the option ” Prevent caching of objects after settings change ” in Performance>Browser Cache>CSS&JS which will add the random query string which you can update every time you make any changes to CSS or JS. something like ?xNNNNN
    This will ensure that the latest version of the file is fetched by the browser and served to visitors.
    Make sure to Update Media Query string (Button in the Performance>Minify or PErformance Browser Cache, just above the “General” sub-box) to ensure new version of the file is created.
    Thanks!

    Thread Starter pstidsen

    (@pstidsen)

    Hi Marko

    Thankt for your reply!

    It helped to check “Prevent caching of objects after settings change”. Thanks! ??

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    You are most welcome!

    We would really appreciate it if you could take a minute and post a review?here. This will help us to continue offering a top-notch product to users.
    Thanks!

    Thread Starter pstidsen

    (@pstidsen)

    Sure ! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Purge cache goes not combine/minify newest CSS file’ is closed to new replies.