FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Avoiding Proxy Caching
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Avoiding Proxy Caching [message #174957] Tue, 26 July 2011 15:35 Go to previous message
j is currently offline  j
Messages: 9
Registered: July 2011
Karma:
Junior Member
I'm having trouble with a proxy server caching pages. Is there a
header or something that I can send to alleviate this problem?

What I have is an htaccess rewrite rule

RewriteRule ^(.*/protected_directory/.*) /pass_check_script.php?path=/$1

that sends all requests for a directory to a php script that does some
password checking and then reads the file and prints a Content-type and
then prints the file contents. A proxy server has cached the results and
avoids the pass check.

I was thinking of sending something in the header, or perhaps just
amending some random string to the html. I know proxy servers ignore
html type no-cache settings.

Jeff
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to make a function recursive
Next Topic: PHP and Flash
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 17:35:16 GMT 2024

Total time taken to generate the page: 0.04126 seconds