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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:55:25+00:00 2026-06-01T23:55:25+00:00

Im facing a problem regarding the browser caching of resources. There are a few

  • 0

Im facing a problem regarding the browser caching of resources. There are a few javascript files, css files that are changed continuously, though the timing is not fixed.

When i update those files on the server, the new files are not loaded and the browser cache needs to be cleared in order to load the new files.

Is there a way, a server or browser setting to tell the browser, when loading a resource, if there are any changes in the server file, load from the server , else use the existing file stored in the browser cache.


Im looking for a solution that would require some browser based / server based configuration, and not something i need to manually do everytime i make an update

  • 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-01T23:55:27+00:00Added an answer on June 1, 2026 at 11:55 pm

    Using just a query string to bust cache is not 100% guaranteed: for example some proxy servers will strip any query string on files linked from your html.

    A better way is to revision in the uri or filename. I use rewrite rules in apache so that something like:

    my.app.com/12345/js/file.js

    Is directed to:

    htdocs/js/file.js

    in the filesystem.

    My app then updates the revision number based on source control, but you could do this by hand in your html. With this solution and setting a far-future expires (http 1.0) and max-age (http 1.1) header I get the benefits of permanent client caching via a new uri, and the development ease of the file being in the same place on the filesystem.

    Steve Souders on far-future headers:

    http://www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/

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

Sidebar

Related Questions

This is a problem am facing for long now also asked a question regarding
i am facing problem with ipv6 validations and ipv4 validations in JavaScript please help
When facing the problem of validating a property in a JSF2 application there are
i am facing a problem regarding the thread. I am having a class which
I have an application that uses UIDatePicker & I am facing problem as described
I know that there have been a number of posts regarding the height:100% declaration
im facing a problem regarding my .htaccess file here is the code within the
I am facing one problem regarding threading scenario. I have three threads in my
I am facing a problem with a JavaScript readonly field. I have a textboxes
I am facing an interesting problem right now. I know it is not that

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.