[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
  How to Prevent and Protect yourself from Negative SEO LB'Decoy 4 63 5 hours ago
Last Post: Watt
  Three Powerful Strategies to Hack On-Page SEO LB'Decoy 3 117 6 hours ago
Last Post: KarleneRMcLain
  Top best SEO Tools? runzun 39 5,291 2017-10-13, 06:25 PM
Last Post: styx
  How To Find Low SEO Competition Keywords BigEarner 43 3,771 2017-10-12, 09:59 AM
Last Post: young69
  On-Page SEO: Anatomy of a Perfectly Optimized Page (Infographic) LB'Decoy 22 755 2017-10-11, 09:03 AM
Last Post: faithalo




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

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