How can I make the browser see CSS and Javascript changes?

后端 未结 5 1180
迷失自我
迷失自我 2020-12-09 01:12

CSS and Javascript files don\'t change very often, so I want them to be cached by the web browser. But I also want the web browser to see changes made to these files without

5条回答
  •  佛祖请我去吃肉
    2020-12-09 02:05

    I was also wondering how to do this, when I found grom's answer. Thanks for the code.

    I struggled with understanding how the code was supposed to be used. (I don't use a version control system.) In summary, you include the timestamp (ts) when you call the stylesheet. You're not planning on changing the stylesheet often:

    
    

提交回复
热议问题