troubleshooting Question

Content expiration best practices

Avatar of nzinsli
nzinsliFlag for United States of America asked on
Microsoft IIS Web ServerWeb Development
1 Comment1 Solution326 ViewsLast Modified:
I'm wondering if I can get some advice on how everyone out there is handling content expiration for e-commerce sites. I'm running into some issues now and then that I think are caused by the user not getting the newly-fixed script files when they come to the site. I have used the querystring method of "file.js?v=123" in some places, but for some includes, it's not practical to change it on every page it's included on. I'm looking into the content expiration settings in IIS, but am wondering the tradeoff of the user having to download the script again for every page. Some of our script files are pretty large, so load-time is a concern. How can I get the best of both worlds where the user can load a cached version but make sure they get the new version as soon as it's uploaded?

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros