[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
  SEO Audit(2018) Scrm Frog -Udemy[FREE] SwiffJustus 39 4,161 11 hours ago
Last Post: carryminati
  [HQ] Kick-Start your SEO Skills with these Courses [Torrent] SiriusBlack 28 4,289 Today, 06:19 AM
Last Post: roanoke
  The Ultimate Guide for your Web 2.0 Private Blog Network SEO Campaigns PowerUpHosting 37 8,572 Today, 06:17 AM
Last Post: roanoke
  [TUTORIAL] Getting started with SEO [Learn how to do SEO the proper way!] capricious 111 19,436 2018-10-16, 09:45 PM
Last Post: cablevisionhelp
  The Definitive Guide To SEO In 2018 Flipin_jackass 33 2,983 2018-10-13, 02:45 PM
Last Post: offer494





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

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