How to Setup Cache-control, Deflate and Expire Headers

Status
Not open for further replies.

feronso

Active Member
208
2009
18
0
Hello,

I have a VPS, i have setup all kind of module which basic application needed. Now i want to optimize site performances.

I have gzip compression enabled and tested its fine and working. also enabled the mod_deflate for advanced compression. but i have looked my site header where not mentioned the Encoded = gzip, deflate etc.

So how to setup deflate and gzip so its shows in header when we check the site header through any tool.

second thing is i want to enable the cache-control to my site. i have reading many tutorials articles and follow them but nothing show in return. So kindly tell me how to activate and setup this so it shows in the header the cache-control, expire, etag etc.

Note: i have try all of above things to enable and configure them through .htaccess and httpd.conf file, restarting apache even VPS too but nothing found any change in header response e.g expire time, encode, deflate etc.

Thanks.
 
6 comments
Hello,

I have a VPS, i have setup all kind of module which basic application needed. Now i want to optimize site performances.
leave apache .go with nginx . :facepalm:
dnt use gzip its makes high cpu <_<

if you have high tariff wordpress blog then install varnish as an cache
 
Status
Not open for further replies.
Back
Top