[Trick(;] Peformance + SEO
2013-08-09, 08:58 AM,
#1
Heyy y'all,

A common reason for impaired speeds and SEO is improper cache-headers and compression.
Today I'll show you an easy way to fix these!



Apache:

Add to .htaccess:

Proper Cache:
Code:
<FilesMatch "\.(gif|ico|jpg|jpeg|png|xml|txt|js|css|mp3|mp4|flv|swf|pdf)$">
Header set Cache-Control "max-age=691200"
</FilesMatch>

Proper Compression:
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>



Nqinx:

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;

Server Directive:
Code:
# add expire headers
        location ~* ^.+.(gif|ico|jpg|jpeg|png|flv|swf|pdf|mp3|mp4|xml|txt|js|css)$ {
            expires 8d;
        }
Latest Thanks - View all

Ваниты(2013-08-10 03:46 AM) Mesina(2013-08-09 02:34 PM) 
Reply
2013-08-09, 02:35 PM,
#2
Thanks for this, I've been trying to find a way to speed up loading of images on my website.

Highly appreciated.

Best Regards,
Mesina
Latest Thanks - View all

Oloty(2013-08-10 03:40 AM) 

[Image: 2m7x0so.gif]
Reply
2013-08-10, 03:41 AM,
#3
(2013-08-09, 02:35 PM)Mesina Wrote: Thanks for this, I've been trying to find a way to speed up loading of images on my website.

Highly appreciated.

Best Regards,
Mesina

No problem mate. Glad I could assist!
Reply
2013-08-10, 03:59 AM,
#4
what O.o..
is this supposed to help you site load quicker?
is that what its for?
Reply
2013-08-10, 05:04 AM,
#5
(2013-08-10, 03:59 AM)Mσney Wrote: what O.o..
is this supposed to help you site load quicker?
is that what its for?

Do you no understand the terms: "compression", "performance", and "proper?"
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Three Powerful Strategies to Hack On-Page SEO LB'Decoy 20 1,275 3 hours ago
Last Post: midastou4
  [eBook] The Complete Guide To SEO For Beginners EnChanter 18 1,069 2017-12-10, 11:00 PM
Last Post: srikanta159
  [SEO] Best Traffic Strategies For 2018 Jackprince501 14 1,110 2017-12-09, 11:14 PM
Last Post: offer494
  How to Prevent and Protect yourself from Negative SEO LB'Decoy 20 1,046 2017-12-08, 11:44 PM
Last Post: Pastorsinot
  Vortex's SEO Tutorial #2: Hide 301 redirects from your competition Vortex 27 5,529 2017-12-08, 11:16 PM
Last Post: ltsune





About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top