I am not the server admin, but I am trying to educate myself so I can talk to our server admin to fix some issues regarding cache control to increase site performance.
So here is the current header:
SERVER RESPONSE: 200 OK
Date: Fri, 23 Sep 2011 09:44:26 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.3.3
Set-Cookie: PHPSESSID=adph0stq4p1lrbapa9g3m097g2;
expires="Fri, 23-Sep-2011 21:44:26 GMT"; 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
Content-Length: 7583
Connection: close
Content-Type: text/html; charset="UTF-8"
Our server admin would be updating the access.conf file and not .htaccess file. Now what I am looking for is some guidance on caching our home page. The home page has two sections that are dynamic. One section that is updated several times during the day and another that is updated on an irregular basis. The rest of the content and graphics are static. From what I read in regards to site performance that we should add cache controls for the images (png, gif, jpg), but should we add a cache control for the home page. What about css and js files?
Should the server admin also set up separate directives for individual secondary pages that are static?
Finally, we have dynamic CGI pages. Any advice for those pages?
Again, I am just trying to educate myself to make sure I am requesting the correct things for my server admin to implement. Thanks.