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

  • Home
  • SEARCH
  • 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 8241461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:50:40+00:00 2026-06-07T20:50:40+00:00

Ive found this tricky to word so please bear with me. When I’m updating

  • 0

Ive found this tricky to word so please bear with me.

When I’m updating a website and I ask the client to see the changes, they always see the cached result from last time. Now this isn’t a problem as I can ask them to ctrl f5 to refresh all the cache.

My question is, is there a way that I can force the client browser to refresh all of the content automatically? and what is the usual standard on this? I want to still use cache as this speeds up the website, just be able to tell it when it has updated.

I know for javascript files and css files you can change the name of the file so the browser treats it as a new file and re-downloads it e.g. myCssFilev1.2.css but what about the actual HTML?

  • 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-07T20:50:42+00:00Added an answer on June 7, 2026 at 8:50 pm

    There are a couple of meta tags to do this:

    <meta http-equiv="cache-control" content="max-age=0" />
    <meta http-equiv="cache-control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
    <meta http-equiv="pragma" content="no-cache" />
    

    The cache-control, expires and pragma settings all work in different browsers, so it’s best to include all of them. That should solve your problem.

    EDIT

    As Ariel has noted, you have to be careful with this. If this is a high-load situation, you probably want to find another solution. You can try to find the “middle ground”, but tweaking the parameters (setting expires or cache-control’s max-age to some value). However, if you don’t have an insane server load, then this should be fine.

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

Sidebar

Related Questions

I've found this login script and I'm trying to implement it into my website
I've found this topic which I've implemented (see accepted answer): javascript equivalent of PHP's
Ive just built a website for a client, and Ive got an odd problem
I've found this code $(window).scroll(function(){ $('#header').css({ //Why this 15, because in the CSS, we
I've found this question on StackOverflow Adding div below images in colorbox But it
I've found this snippet of code on the net. It sets up an NSMutableArray
I've found this small code that sends email to gmail users. I'd like the
I've found this at connection strings.com http://connectionstrings.com/mysql Do I need to download connector-net from
I've found this page about the Twitter search API and some operators : http://search.twitter.com/operators
I've found this topic for PostData using http. but it doesn't work. What's wrong?

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.