Disabling Chrome cache for website development

后端 未结 30 1991
-上瘾入骨i
-上瘾入骨i 2020-11-21 06:49

I am modifying a site\'s appearance (CSS modifications) but can\'t see the result on Chrome because of annoying persistent cache. I tried Shift+refresh but it doe

30条回答
  •  误落风尘
    2020-11-21 07:08

    Not sure what you are using, but if you are using ASP.Net you can do the following which works like a charm:

    
    

    Basically it will automatically append the Date and Time to the end of the file each time it is ran, meaning since the file name is technically different, you will never have to worry about it getting cached again.

提交回复
热议问题