homepage Welcome to WebmasterWorld Guest from 54.167.144.202
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
mod cache, mod expires, PHPSESSID, Pragma
AlexB77

5+ Year Member



 
Msg#: 4386944 posted 11:51 pm on Nov 14, 2011 (gmt 0)

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.

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved