Let’s say I cache my CSS file and set their expiry date to a month from now. Suppose I have some updates and so modify the CSS file. How can I ensure that visitors to my website will be using the updated CSS instead of the old one?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could change the name which would ensure that regardless of users browsers, they would get the new file. In all places you reference the CSS file, reference a variable containing the file name instead. When you release a new version, update the variable so all pages look at the new stylesheet.