Speed up PHP Performance, Set Expires header to image, css, js

by Vinoth 2009-07-01 10:36:15

Hi all,
Use the bellow code to speed up your Website performance. One of the way to increase perfomance is to reduce HTTP connection.
So we can set expire headers for images, common js files, css style sheet.

Just add the bellow code

< IfModule mod_expires.c >
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/png A2592000
ExpiresByType application/x-javascript A2592000
ExpiresByType text/css A2592000
ExpiresByType image/x-icon A2592000
</IfModule>


Here
A2592000 = 720hours = 30days
A3600=1 hour: (60*60);


Enter Expire Days

Value

Tagged in:

2689
like
0
dislike
0
mail
flag

You must LOGIN to add comments