How can I force clients to refresh JavaScript files?

后端 未结 26 2283
旧时难觅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:30

    Simplest solution? Don't let the browser cache at all. Append the current time (in ms) as a query.

    (You are still in beta, so you could make a reasonable case for not optimizing for performance. But YMMV here.)

提交回复
热议问题