• Resolved Mojtaba

    (@mojtaba-taheri)


    When I update my css or js files, the user’s browser has that files cached already, so the new css or js won’t load. It can may the WordPress website look broken. WordPress solves this problem with versioning files like style.css?v=12345678 but when I use litespeed cache plugin, the combined and minified css or js files gets the naming from LScache so I can’t overwrite cached files on browsers.

    How can I overcome this problem?

Viewing 1 replies (of 1 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    You can purge all in LSCWP

    each time the cache is purged , the optimized CSS/JS file names are changed.

    For example in this cache , it’s named like a1234.css , then you purge it and next time cache is generated, it will be like “b4567.css” … and so on to address the static files to be cached by browser issue.

    Best regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Css and js versioning or naming for cache-busting’ is closed to new replies.