• Resolved rambo3000

    (@rambo3000)


    Hi.

    Example:
    1. file /wp-content/cache/minify/13715.js is changed
    2. cache is cleared
    3. after page refresh, same resource name (13715.js) is used, therefore browser doesn’t update the resource cache, and file is not updated until hard refresh is made in the browser.

    Correct behavior should be to change resource name (or append versioning ?v=123 at the end of resource), so browser knows when to update the resource.

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

    (@vmarko)

    Hello @rambo3000

    Thank you for your inquiry and I am happy to assist you with this.
    Yes, the file name is not changed once the cache is purged. For that kind of a use case, we have an option in Performance>Browser Cache>JS&CSS>”Prevent caching of objects after settings change”
    Once enabled, it will add a query string ?xNNNNN to JS and CSS files. Once the file/files are changed, you only have to click on the “Update media Query string” button at the top of the Minify or Browser Cache setting page.
    This will make sure that an updated query string is generated and therefore the Browser will present updated files to the visitors.
    Thanks!

    Thread Starter rambo3000

    (@rambo3000)

    Perfect, thank you!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @rambo3000

    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 rambo3000

    (@rambo3000)

    Sure, done.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Javascript file name is not changed after cache is cleared’ is closed to new replies.