Results 1 to 10 of 42
Threaded View
-
6th Sep 2010, 10:42 PM #1
Improve your site performance, improve SEO
Hello,
Today I'll present you a shameful reality that causes Internet to be slow. Its called careless webmasters/sysadmins.
You certainly noticed some sites are faster than another, this is due several reasons, one of them is non-proper cache headers and non-proper gzip.
You can test your site speed here:
GTmetrix | Website Speed and Performance Optimization
But now how do I improve it?
If you are using apache its pretty easy.
Open your .htaccess inside www or the dir that represents the root of webserver and add (if doesn't exist):
Code:<FilesMatch "\.(gif|ico|jpg|jpeg|png|flv|swf|pdf|mp3|mp4|xml|txt|js|css)$"> Header set Cache-Control "max-age=691200" </FilesMatch> <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css AddOutputFilterByType DEFLATE application/javascript application/x-javascript AddOutputFilterByType DEFLATE application/xml application/xhtml+xml application/rss+xml </IfModule>
Code:<IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css AddOutputFilterByType DEFLATE application/javascript application/x-javascript AddOutputFilterByType DEFLATE application/xml application/xhtml+xml application/rss+xml </IfModule>
Open up nginx.conf and add in http directive
Code:## Compression gzip on; gzip_buffers 8 8k; gzip_comp_level 5; gzip_http_version 1.0; gzip_min_length 1k; gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon image/gif; gzip_vary on;
Code:# add expire headers location ~* ^.+.(gif|ico|jpg|jpeg|png|flv|swf|pdf|mp3|mp4|xml|txt|js|css)$ { expires 8d; }
Now reload nginx.
Code:nginx -s reload
Regards,
NewEraCrackerNewEraCracker Reviewed by NewEraCracker on . Improve your site performance, improve SEO Hello, Today I'll present you a shameful reality that causes Internet to be slow. Its called careless webmasters/sysadmins. You certainly noticed some sites are faster than another, this is due several reasons, one of them is non-proper cache headers and non-proper gzip. You can test your site speed here: GTmetrix | Website Speed and Performance Optimization But now how do I improve it? Rating: 5Trusted: Dom, l0calh0st, 0ccul7, robert420
Find all threads started by NewEraCracker
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
If you have this site, what would you do to improve it?
By DoctorX in forum Site ReviewsReplies: 14Last Post: 13th Jan 2011, 04:02 PM -
How to improve site ranking...
By GouroB in forum General DiscussionReplies: 2Last Post: 16th Oct 2010, 09:59 PM -
Can someone improve VBSEO my site?
By anti-human in forum vBulletinReplies: 4Last Post: 26th Jan 2009, 01:07 AM
themaManager - edit and manage...
Version 3.94 released. Open older version (or...