Poll: Is this helpful for you?
Yes
No
Don't use
[Show Results]
 
Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Some about speed up your site
23-05-2012, 01:21 PM (This post was last modified: 23-05-2012 01:47 PM by Role-Model.)
Post: #1
Rainbow Some about speed up your site
Hello,
I put to my site in .htaccess file:


Header unset Pragma
FileETag None
Header unset ETag

# cache images/pdf docs for 10 days
<FilesMatch "\.(ico|pdf|jpg|jpeg|png|gif)$">
Header set Cache-Control "max-age=864000, public, must-revalidate"
Header unset Last-Modified
</FilesMatch>

# cache html/htm/xml/txt diles for 2 days
<FilesMatch "\.(html|htm|xml|txt|xsl)$">
Header set Cache-Control "max-age=7200, must-revalidate"
</FilesMatch>


And this too:

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 2 days"
</IfModule>
## EXPIRES CACHING ##


And speed it up a little Smile

Do you have other methods?
Is my code and method right?

Regards
Svetoslav

My sites are closed. Google disconnect them and i loose all users.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Some about speed up your site - Role-Model - 23-05-2012 01:21 PM
RE: Some about speed up your site - admin - 23-05-2012, 02:16 PM

Forum Jump: