[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
Share This Thread :
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


Related Threads
Thread Author Replies Views Last Post
  Is This the End of Hack Niches in SEO? spiritfly 20 1,026 Yesterday, 12:24 PM
Last Post: Uiqueblhats
  On-Page SEO: Anatomy of a Perfectly Optimized Page (Infographic) LB'Decoy 25 1,470 2018-02-20, 09:45 PM
Last Post: faithalo
  [eBook] The Complete Guide To SEO For Beginners EnChanter 32 2,266 2018-02-19, 08:38 PM
Last Post: Pastorsinot
  How to Get More SEO Value from your Nofollow Links LB'Decoy 22 1,643 2018-02-18, 08:09 PM
Last Post: CarolA
  Top 6 SEO Trends That Won' t Lag Behind By 2018 mrtim 14 1,262 2018-02-18, 02:25 PM
Last Post: surapan





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

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