Text Link Ads

Code Authors: Forums


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
Guardian
Site Admin
Site Admin



Joined: Jan 06, 2006
Posts: 3779
Location: Poland

PostPosted: Sat Mar 29, 2008 1:33 pm Reply with quote Back to top

A lot of custom themes contain a lot of different images which can take a considerable amount of time to load.

Whilst most browsers will cache images, you can help by placing something like this in your htaccess file
Code:

<IfModule>
   ExpiresActive On
   # ExpiresDefault A86400
   ExpiresByType image/x-icon "access plus 1 month"
   ExpiresByType application/x-javascript "access plus 5 minutes"
   ExpiresByType text/css "access plus 5 minutes"
   ExpiresByType image/gif "access plus 1 month"
   ExpiresByType image/png "access plus 1 month"
   ExpiresByType image/jpeg "access plus 1 month"
   ExpiresByType text/plain "access plus 15 minutes"
   ExpiresByType application/x-shockwave-flash "access plus 1 month"
   ExpiresByType video/x-flv "access plus 1 month"
   ExpiresByType application/pdf "access plus 1 month"
   ExpiresByType text/html "access plus 5 minutes"
   ExpiresByType text/javascript "access plus 5 minutes"
   ExpiresByType application/x-javascript "access plus 5 minutes"
</IfModule>

which is what we do with RavenNuke.

Another way to speed up things is to compress your style sheet using an online utility like this one here at CSS Drive I managed to cut my own forum style sheet file size down by 34% which means as the file size is smaller, it loads a little quicker - though most browser cache this any way, every little helps.
This is especially so if you are using a none standards compliant theme where you will need all the help you can get.

_________________
Nuke Reviews
View user's profile Send private message Send e-mail Visit poster's website
montego
Site Admin
Site Admin



Joined: Jan 06, 2006
Posts: 99

PostPosted: Sun Mar 30, 2008 2:58 am Reply with quote Back to top

Might also want to check with your host to see if they have the following module loaded:

LoadModule expires_module modules/mod_expires.so

At least I am guessing this is the one being referenced.
View user's profile Send private message Visit poster's website
Guardian
Site Admin
Site Admin



Joined: Jan 06, 2006
Posts: 3779
Location: Poland

PostPosted: Sun Mar 30, 2008 9:28 am Reply with quote Back to top

Yes thats correct. The <IfModule> test should atleast stop the dreaded 500 error if you cannot use those directives in htaccess.
BUT it is always best to check with your host first as they ma not even allow the use of htaccess directives at all in which case the 'test' itself might cause a failure.

_________________
Nuke Reviews
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001-2008 phpBB Group
All times are GMT
Forums ©
Vegas Hotel | Unsecured Personal Loans Online | Myspace Layouts | Mortgage | Loans

Scripts.com - Get the best scripts NOW!