Free Adult Tube-Video Script Forum
Some about speed up your site - Printable Version

+- Free Adult Tube-Video Script Forum (http://freeadultscript.com/forum)
+-- Forum: My Category (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=2)
+--- Thread: Some about speed up your site (/showthread.php?tid=2924)



Some about speed up your site - Role-Model - 23-05-2012 01:21 PM

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


RE: Some about speed up your site - admin - 23-05-2012 02:16 PM

FAS already caches the system.
i do not understan that script why caching images and pdf files. they are already passive files


RE: Some about speed up your site - Role-Model - 23-05-2012 02:39 PM

(23-05-2012 02:16 PM)admin Wrote:  FAS already caches the system.
i do not understan that script why caching images and pdf files. they are already passive files
I don't know Smile i think works faster this way Smile