Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8482481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:50:33+00:00 2026-06-10T19:50:33+00:00

I am currently testing a web site as the development goes on, and almost

  • 0

I am currently testing a web site as the development goes on, and almost every time the client script is updated, I need to clear the browser cache for a new functionality to become available on the client due to the fact that the browser downloads the fresh compy of the .js file.

What if in production I roll out a new version of a script? How do I get the client browsers to get it as soon as it is uploaded to the server?

I am using an ASP.NET MVC 4 site.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T19:50:34+00:00Added an answer on June 10, 2026 at 7:50 pm

    Rename the file to create versioning:

    so

    <script src="myscript.js"></script>
    

    becomes

    <script src="myscript-9-5-2012.js"></script>
    

    Also per https://developers.google.com/speed/docs/best-practices/caching#LeverageProxyCaching

    It’s not recommended to use querystrings for versioning (ie. myscript.js?v=1.1.0) because specifically

    Most proxies, most notably Squid up through version 3.0, do not cache resources with a “?” in their URL …

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I am doing acceptance testing of my web applications using Cucumber and webrat.
I'm currently testing a .NET 2.0 client application for Windows 7 Software Logo compliance
I'm working on a web site project with a Java component and am currently
I have an ASP.net Web Site Project (.net 3.5). Currently all of the non-code
I'm currently testing on Internet Explorer 8. My script types in a username and
I need to test web API functions in REST format. Currently using Selenium RC
I'm currently designing a website on Ubuntu and testing it with Tomcat 7. I
I'm currently testing drag & drop. Drag & dropping an image from my desktop
I am currently testing sharepoint components using msTest, which works nicely. However, when I
I'm currently testing a new version of an app of mine on OSX 10.5

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.