[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
  A 10-Step SEO Plan for Higher Search Rankings in 2018 IAmCPAKing 8 436 3 hours ago
Last Post: JoeSpirit
  On-Page SEO Techniques To Rank On The First Page in 2018 ElitesCPABoss 5 204 Yesterday, 12:28 PM
Last Post: georgeh
  The Definitive Guide To SEO In 2018 Flipin_jackass 27 1,932 2018-08-17, 07:28 AM
Last Post: king007
  SEO Audit(2018) Scrm Frog -Udemy[FREE] SwiffJustus 32 3,079 2018-08-16, 03:14 PM
Last Post: timberlin
  [HQ] Kick-Start your SEO Skills with these Courses [Torrent] SiriusBlack 23 3,288 2018-08-15, 02:28 PM
Last Post: roanoke





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

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