20

I have a website that is sending out "cache-control" and "pragma" HTTP headers for PHP requests.
I'm not doing that in the code, so I'm assuming it's some kind of Apache configuration, as suggested by this question (you don't really need to go there for this question's context)

I don't have anything in my .htaccess files, so it's gotta be in Apache's configuration itself, but I can't access that, this is a shared hosting, I only have FTP access to my website's directory.

Is there any way that I can add directives to my .htaccess files that will remove the headers added by the global configuration, or otherwise override the directive so that they're not added in the first place?

Thank you very much
Daniel

1 Answer 1

27

Just replied to my own question...

Header unset Pragma Header unset Last-Modified Header unset Cache-Control 
1
  • 2
    with apache 2.4 i had to do Header always unset pragma Commented Jul 28, 2018 at 7:37

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.