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 76465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:40:40+00:00 2026-05-10T20:40:40+00:00

I have a JavaScript resource that has the possibility of being edited at any

  • 0

I have a JavaScript resource that has the possibility of being edited at any time. Once it is edited I would want it to be propagated to the user’s browser relatively quickly (like maybe 15 minutes or so), however, the frequency of this resource being editing is few and far between (maybe 2 a month).

I’d rather the resource to be cached in the browser, since it will be retrieved frequently, but I’d also like the cache to get reset on the browser at a semi-regular interval.

I know I can pass a no-cache header when I request for the resource, but I was wondering when the cache would automatically reset itself on the browser if I did not pass no-cache.

I imagine this would be independent for each browser, but I’m not sure.

I tried to Google this, but most of the hits I found were about clearing the browser’s cache… which isn’t what I’m looking for.

  • 1 1 Answer
  • 3 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. 2026-05-10T20:40:40+00:00Added an answer on May 10, 2026 at 8:40 pm

    You may pass a version string as a get parameter to the URL of your script tag. The parameter won’t be evaluated by the static JavaScript file but force the browser to get the new version.

    If you do not want to assign the version string every time you edited the source you may compute it based on the file system time stamp or your subversion commit number:

    <script src='/script.js?time_stamp=1224147832156' type='text/javascript'></script> <script src='/script.js?svn_version=678' type='text/javascript'></script> 

       

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

Sidebar

Related Questions

I have JavaScript that is doing activity periodically. When the user is not looking
I am a Javascript/jQuery/Prototype newcomer and I have a page that has a Prototype
I have a resource called patient_admissions that has all the RESTful routes. It is
I have a Javascript bookmarklet that, when clicked on, redirects the user to a
I have built a custom control that has a small amount of JavaScript. The
I have an app that has a bunch of resources. Having read about javascript
I have Javascript that opens another window and registers a click handler for all
I have javascript string variable with var sttr=We prefer questions that can be answered
I have an MVC 2 application that has the following on it; <% using(
I wrote a page by javascript that has over 1000 lines of code and

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.