Mobile app version of vmapp.org
Login or Join
Carla537

: IIS and content caching I'm a web developer and administer of a Windows 2008R2 Cloud Instance with IIS 7. I recently made an update to our website, but when I revisited the website, the

@Carla537

Posted in: #Cache #Iis7

I'm a web developer and administer of a Windows 2008R2 Cloud Instance with IIS 7. I recently made an update to our website, but when I revisited the website, the website was being viewed with old stylings. I did a refresh (shift + reload button in Firefox) and of course the website displayed as it should. I didn't worry about it, until my client had the same issue in Safari.

So, my question, in general, is, how do I prevent this from happening again, and yet still afford some caching of our site?

I noticed we did not have content expiration set up on our webserver sites, so I've set that up, but did I really need to?

I've also looked at Etags, and, honestly, it's hard for me to know whether or not I should use them or not. One comment I read somewhere there isn't really any issue with Etags scenarios in IIS (even in webfarms)... but, I dunno.

Anybody have any suggestions, links, info? Thanks.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Carla537

1 Comments

Sorted by latest first Latest Oldest Best

 

@Murray432

The easist way to solve this is version the name of your CSS file e.g. style-v1.css, increment the number when you make major changes and you'll never have this problem again.

Having far future expiration dates on your images and media helps your users as they don't download the same files over and over again while browsing your site. Both expiration dates and ETags are part of front end optimization best practice.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme