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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:50:28+00:00 2026-05-28T06:50:28+00:00

Is there a way to force a client’s cache to reload an HTML file

  • 0

Is there a way to force a client’s cache to reload an HTML file if you can’t change the URI referencing that file (e.g., can’t add a timestamp param)?

Here’s my situation:

  • A plugin deployed to a 1000 users
  • That plugin loads example.com/page.html which calls on script.js
  • The resource URI example.com/page.html cannot be changed (w/o plugin updates)
  • page.html has been changed. I need to clear the old page.html from users’ cache so the new page.html can load.

Any ideas? Htaccess? The PHP API that the old & new page.html call on?

Thanks!

  • 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-05-28T06:50:29+00:00Added an answer on May 28, 2026 at 6:50 am

    Well, if the page is already cached by a browser it’s difficult to tell it not to use its cached version because it probably won’t bother to check again before it determines its cached version is stale. You’ll just have to send a snail-mail letter to all of your users informing them to press ctrl+f5 🙂

    There is a chance that the browser might at least try a HEAD request to check the modified timestamp before it serves up its cached version, though. In this case the following will help you out.

    Browsers negotiate their content from your web server using HTTP standard headers. Going forward if you want to tell a browser not to cache a file, you have to send the appropriate HTTP headers. If you want to do this in PHP you can use the header function to send the appropriate HTTP headers to the browser:

    header('Cache-Control: no-cache');
    header('Pragma: no-cache');
    

    If it has to be done via HTML you can do the following in your page header:

    <meta http-equiv="Expires" content="Tue, 01 Jan 1995 12:12:12 GMT">
    <meta http-equiv="Pragma" content="no-cache">
    

    There is no way for you to be sure if the browser will honor your request that it not cache a page, however. There are some other things like eTags and whatnot but frankly I don’t think that’s going to help you out if the page is already cached.


    UPDATE

    From the HTTP/1.1 specification on Response Cacheability:

    If there is neither a cache validator nor an explicit expiration time
    associated with a response, we do not expect it to be cached, but
    certain caches MAY violate this expectation (for example, when little
    or no network connectivity is available).

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

Sidebar

Related Questions

Is there a way to force the client to update its local svn configuration
Is there any way to force Outlook to display HTML in the desktop alert
Is there a way to force a Samba process to close a given file
tl;dr version: Is there a way to force a strict mode for JAX-WS that
Is there any way to force a listview control to treat all clicks as
Is there any way to force an update of software using RunOnce, without having
Is there a way to force the flash garbage collector to clean up freed
Is there any way to force Text-Mate to use a two-space tab instead of
Is there a way to force IE or FF into a handheld mode for
Is there any way to force PHP to blow up (error, whatever) if I

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.