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
|
|||
|
|||
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 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. |
|||
23-05-2012, 02:16 PM
Post: #2
|
|||
|
|||
RE: Some about speed up your site
FAS already caches the system.
i do not understan that script why caching images and pdf files. they are already passive files |
|||
23-05-2012, 02:39 PM
Post: #3
|
|||
|
|||
RE: Some about speed up your site
(23-05-2012 02:16 PM)admin Wrote: FAS already caches the system.I don't know i think works faster this way My sites are closed. Google disconnect them and i loose all users. |
|||
« Next Oldest | Next Newest »
|