Advanced
View Scraps
Categories
Most Viewed
Top Rated
Add Scraps
History
Today in History
Thoughts
Welcome,
Logout
Sign In / Sign Up
Speed up PHP Performance, Set Expires header to image, css, js
by Vinoth
[
Edit
]
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:
PHP
2870
0
0
Previous
Next
You must
LOGIN
to add comments
Posting your comment...
Tags
Apache
Firefox Tweeks
Shortcuts
PHP
Others
CSS
Javascript
DNS
Windows
Websites
Linux
Game programming
Mysql
CVS
HTML
MS Office
JSP/Java
FTP Server
Flash
AJAX
More...
Indian Web Directory
Time Zone Converter
Web Internet Statistics
Live Chatting Online
Comments
expected, smart move:)
Already black money holders account is empty..
The money will never return
Nice sharing..
Thank you...
Good one...
Nice post...
Good sharing.....
Good...
Thanks for nice sharing...