Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

163
Views
How do I control web page caching, across all browsers?

I have a website up and running; I am constantly working on improving the site. But unless the costumer presse clears the cache it does not update to the latest version of my css and html. I wanted to change the http cache header to be

USING HTML

<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">

So this way the website has all the current info at all time.

But I have no idea as to where to put this code in. Do I create a new file named html or do I just input this somewhere in my index.html. Please help.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can put meta tag inside the head tag of your html file but if header is present in http response than that takes priority over meta tag. If you are using apache then create .htaccess file and set header there to prevent caching

<IfModule mod_headers.c>
    Header set Cache-Control "no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires 0
</IfModule>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!