Many servers or CDN will cache static content such as CSS, JS, and images. on IE, a local cache will be made. Therefore, after we update the CSS file, the client is often not updated, resulting in display problems. Previously, I used the timestamp parameter method to solve the problem:
Each time the css file is changed, the value of the parameter time is set to the date of the day of change, so that local IE will update it as a new file.
However, a strange problem was found in a recent project. The server was compressed with gzip, and it was okay when the client was unzipped for the first time, during the second access, ie could read the file from the cache and only read the first 1000 or 2000 bytes. This problem was reproduced on two win2000 + ie6 hosts, but XP has not yet been found.
The final solution is to add a. CSS end after the time stamp, that is, to write it:
Then everything is normal...
IE may have to make a judgment on the file extension when reading files from the cache, so add it to recognize it.
Of course, js can also use this method.
Source: http://www.iamued.com/qianduan/1629.html