stylesheet - Force CSS Recache -


Is there any way to set or apply a css file to cache again if the user is an old Closing file?

There is a certain way to ensure that everyone reloads their new file so that their Could change URL. In fact, a proper way to do this without changing its name is to attack a random string:

  & lt; Link rel = 'stylesheet' href = '/ mystyle.css? Random = 87365835 '& gt;  

This is using a sledgehammer to circumvent a play, and except for all the HTTP mechanisms present, it will work completely everywhere, while Other techniques are all warnings.

Edit: @ Jitter: You do not have to change the URL automatically for each request - you can base it on the timestamp of the CSS file, or even You can change it by hand. You want to make sure that the CSS is reloaded.


Comments