我必须清除cookie每次我修改css文件 [英] I have to clear cookies each time I modify css file

查看:199
本文介绍了我必须清除cookie每次我修改css文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



因为一段时间后,我每次更改我的.css文件中的内容时都必须清除cookie。好吧,目前它是一个.less文件。但这已经发生在我之前,也是我的伙伴,当使用.css文件。



如果我在更改后不清除Cookie,则网站不会发生任何变化。



令人沮丧的! / p>

有人对这个奇怪的行为有什么好的解释? :)



感谢

解决方案

只是被浏览器缓存?下次修改CSS文件时,请尝试执行硬刷新(通常为Windows上的CTRL + F5,Mac上为CMD + SHIFT + R)。


This is such an annoying and timeconsuming bug!

Since a while back I have to clear the cookies each time I change something in my .css file. Well, currently it's a .less file. But this has happened to me before and also my buddy when working with a .css file.

If I don't clear cookies after a change nothing happens with the site..

Frustrating!

Someone have any good explanation for this strange behavior? :)

Thanks

解决方案

Are you sure your CSS isn't just getting cached by the browser? The next time you modify your CSS file try performing a hard refresh (generally CTRL+F5 on Windows, CMD+SHIFT+R on Mac).

这篇关于我必须清除cookie每次我修改css文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆