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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:45:42+00:00 2026-06-11T19:45:42+00:00

My PHP site’s HTML <head> tag includes: <meta http-equiv=Cache-Control content=max-age=300/> Yet the headers show:

  • 0

My PHP site’s HTML <head> tag includes:

<meta http-equiv="Cache-Control" content="max-age=300"/>

Yet the headers show:

 Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-
        check=0
    Pragma: no-cache

I can’t find anywhere in the PHP site that I’ve inherited that is disabling the cache (I did a full file-content search for “cache” and did not find anything relevant).

I’m not sure where else to look, so I wanted to ask what are all the different ways that caching can be disabled in a PHP site?

  • 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-11T19:45:43+00:00Added an answer on June 11, 2026 at 7:45 pm

    Put the following at the top of the page – if this fixes it – then maybe check your .htaccess or somewhere in the control panel / php.ini – just guessing there..

    header("Cache-Control: private, max-age=6000, pre-check=6000"); 
    header("Pragma: private"); 
    header("Expires: " . gmdate("D, d M Y H:i:s"). " GMT"); 
    

    Source: click here

    Author: Here

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

Sidebar

Related Questions

so I obtained a piece of html code from a PHP site that returns
I have a PHP site using MVC, which builds HTML dynamically for most requests.
I have a PHP site (with CodeIgniter) that includes a registration form. I have
i want redirect to new/index.php when people type site.com site.com/index.php site.com/index.html site.com/index.htm So this
My PHP site generates static html versions of dynamic db driven code and stores
My PHP site has header,body,footer files that are included into the INDEX.PHP page. On
I created a simple PHP site for a friend last year. I went to
I have a PHP site that uses a fairly common authentication scheme. The entire
I have a requirement in my PHP site to join an image(jpg or png)
I'm working on a php site that needs both Japanese and English. In most

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.