Server sending default cache-control headers?

I just recently moved to Dreamhost (VPS)… I see the server is sending default cache-control and pragma headers that I cannot seem to override. How can I change this?


Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache

I’ve done some reading on this forum - someone mentioned httpd, but I cannot access httpd… says permission denied. I tried .htaccess and I’ve tried php code changes and that allows me to add another header, but I cannot seem to remove the default headers.


I was able to get it working well enough with PHP…

I missed your first post first time around.

Dreamhost VPS’s weren’t always locked down like they are today. Historically the user had administrative users that had root access. Therefor it was possible to completely customize anything if you turned dreamhost management off. This is why you found references in the forum about how to modify these headers.

Today, however the VPS is a managed product. If you can’t live with the default server properties these days you’ll have to upgrade to a dedicated server or dreamcompute instance.