how to clear my clients cache next time they log in

后端 未结 6 1828
萌比男神i
萌比男神i 2021-01-11 18:27

I have an application running on hostgator. When I make changes to the js files my users don\'t see the changes until they clear their cache. Is this the only option to pu

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-11 19:10

    You can append dummy query strings to the asset URL:

    
    

    Then, whenever you make any changes to your CSS, just bump up the version number.

    This technique is called cache busting. Search Google for that, and you'll get many different variations.

提交回复
热议问题