Welcome to WebmasterWorld Guest from 54.167.86.211

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

mod cache, mod expires, PHPSESSID, Pragma

     
11:51 pm on Nov 14, 2011 (gmt 0)

Full Member

5+ Year Member

joined:Apr 26, 2009
posts: 246
votes: 2


Hi Guys,

Here is what I am trying to achieve:

I need to setup header response to some .html files in /ExampleDirectory/ to:
DateMon, 14 Nov 2011 23:28:54 GMT
ServerApache
ExpiresThu, 19 Nov 1981 08:52:00 GMT
Cache-Controlno-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragmano-cache
VaryAccept-Encoding
Content-Encodinggzip
X-Powered-ByPleskLin
Content-Length11583
Keep-Alivetimeout=10, max=100
ConnectionKeep-Alive
Content-Typetext/html

when other files in the same directory /ExampleDirectory/ should have header response as:
DateMon, 14 Nov 2011 23:28:04 GMT
ServerApache
Cache-Controlmax-age=21600
ExpiresTue, 15 Nov 2011 05:28:04 GMT
VaryAccept-Encoding
Content-Encodinggzip
X-Powered-ByPleskLin
Content-Length5671
Keep-Alivetimeout=10, max=100
ConnectionKeep-Alive
Content-Typetext/html

there is also one more thing, for instance if you check the header response of the page with the first header it also shows
Set-Cookie:PHPSESSID=06len3uktc1fjobpigbhi0m530; path=/
in response header, so the entire responce looks like this:
Server:Apache
Set-Cookie:PHPSESSID=sb85p10kcp6l1dfg7oo8hlsc85; path=/
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
Vary:Accept-Encoding
Content-Encoding:gzip
X-Powered-By:PleskLin
Content-Length:20
Keep-Alive:timeout=10, max=100
Connection:Keep-Alive
Content-Type:text/html

Can anyone help me to understand the process and actually help me to set it up right on my server. I am on apache 2.2.3 and do have an access to httpd.conf and php.ini files.

I have seen a couple of similar threads and in fact tried to implement myself, but nothing worked for me so far.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members