[nycphp-talk] Prob. With Headers in .htaccess using PHP
jessica kelly
jkelly at sussex.edu
Fri Apr 1 17:24:17 EST 2005
Never mind,
I got it working.
Jessica
<<< jkelly at sussex.edu 4/ 1 4:32p >>>
Hi All,
I can set headers in .htaccess for files in a folder just fine when Apache 1.3.x serves a .htm page.
However if the page is a .php page the headers are not being added. Instead I get a "X-Powered-By:·PHP/4.x.x" or something of the sort but no
Cache-Control:·max-age=0,·no-store,·max-age=0
Expires:·Fri,·01·Apr·2005·21:26:58·GMT(CR)
Headers that I want served.
Where I work the files are cached in the server room and there is another cache farther down our pipe. The evil network admins are non-cooperative in my requests to not cache that folder/files.
It is causing problems with my dynamic PHP pages and only shows the cached page the first time around. Yes I can get it to "refresh" every 5 seconds via <meta expires, but I would like something that doesn't pound the server and is more of a real fix.
Any suggestions/thoughts?
Thanks,
Jessica
_______________________________________________
New York PHP Talk Mailing List
AMP Technology
Supporting Apache, MySQL and PHP
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org
More information about the talk
mailing list