// you’re reading...

Apache / PHP / MySQL

Apache performance tuning – Expires Headers

httpd_logo_wide_thumb_48pxWith the advent of YSlow, we should all now be aware of adding expires headers to our web servers. For my purposes, I wanted to enable it globally, then fine-tune per Virtual Host.

In my Apache httpd.conf, I added the following directives:

<ifmodule mod_expires.c>
<filesmatch \".(jpg|gif|png|css|js|swf|ico)$\">
ExpiresActive on
ExpiresDefault \"access plus 1 year\"
</filesmatch>
</ifmodule>

Thoughts?

Discussion

No comments for “Apache performance tuning – Expires Headers”

Post a comment

 

June 2009
S M T W T F S
« Apr   Jul »
 123456
78910111213
14151617181920
21222324252627
282930