• Resolved Gal Baras

    (@galbaras)


    All downloaded files (e.g. analytics.js or gtag.js) are now renamed to random strings

    Do these names stay the same for a given site, or change every time the files are updated?

    What happens on sites with page caching?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Gal Baras

    (@galbaras)

    OK, I’ve tested this and it’s not good.

    When pages are cached, and scripts are updated, there is a mismatch between the cached page and the actual script names, resulting in 404 errors for the scripts.

    Clearing the entire cache every time CAOS scripts are updated is not desirable, so each site should have its own unique “random” string, which shouldn’t change when updated. Once files have been renamed, the plugin should remember that unique string and reuse it whenever the files are updated.

    Plugin Author Daan from Daan.dev

    (@daanvandenbergh)

    Good point, Gal.

    In a next release, I’ll undo the part that updates the file aliases every time.

    Plugin Author Daan from Daan.dev

    (@daanvandenbergh)

    Hi Gal,

    I just released a new version in which the aliasses are only generated once. You’re right, changing them on each update was a total overkill.

    Thanks for testing!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘v4.0 and page caching’ is closed to new replies.