How can I force clients to refresh JavaScript files?

后端 未结 26 2662
旧时难觅i
旧时难觅i 2020-11-22 03:40

We are currently working in a private beta and so are still in the process of making fairly rapid changes, although obviously as usage is starting to ramp up, we will be slo

26条回答
  •  没有蜡笔的小新
    2020-11-22 04:19

    Use a version GET variable to prevent browser caching.

    Appending ?v=AUTO_INCREMENT_VERSION to the end of your url prevents browser caching - avoiding any and all cached scripts.

提交回复
热议问题