CSS文件缓存小数点后上传到服务器的新版本被清除 [英] css file cache dot being cleared after new version uploaded to server

查看:182
本文介绍了CSS文件缓存小数点后上传到服务器的新版本被清除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我有一个小问题。

hi i have a little problem

我上载我的网站的一个新版本。
有些用户抱怨说,他们看到一些网页,我改变非常非常错误的。

i uploaded a new version of my website. and some users complained that they see some page i changed very very wrong.

在刷新后反正他们看到它的罚款。

anyway after a refresh they see it fine.

我认为它是因为我的CSS文件中得到了由他们在一个较早的时间缓存...
为什么心不是浏览器下载第一次加载由他本人CSS文件?..

i think its because my css file got cached by them on an earlier time... why isnt the browser downloading the css file by himself on first load?..

他应该知道css文件改变dosnt他?

he should know the css file changed dosnt he?

在此先感谢

推荐答案

@ UpTheCreek的方法将正常工作。但是你可以只是改变了电话,不改变文件名保存一些麻烦。

@UpTheCreek's method will work fine. But you can save some trouble by just changing the call and not changing the filename.

screen.css?v=12

这也将强制重新加载,但将只要求您更改来电。

This will also force a reload but will only require you to change the call.

这篇关于CSS文件缓存小数点后上传到服务器的新版本被清除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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