[Trick(;] Peformance + SEO

Welcome to CPAElites - the original incentive CPA affiliate marketing forum online, solely based on "Cost Per Action".

Be a part of something great, join today! Learn CPA marketing with CPAElites, we will teach you everything such as the best CPA networks, CPA offers with highest payouts and best conversion rates, unsaturated CPA niches, most effective traffic sources and more.

Oloty

Well-known member
Joined
August 6, 2013
Messages
61
Reaction score
0
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;
        }
 

Mesina

Well-known member
VIP Legends CPAElites Classic (1.0)
Joined
June 12, 2013
Messages
545
Reaction score
1
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
 

Oloty

Well-known member
Joined
August 6, 2013
Messages
61
Reaction score
0
Mesina said:
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!
 

Xzyl

Well-known member
VIP Legends CPAElites Classic (1.0)
VIP Elites CPAElites Classic (1.0)
Joined
June 1, 2013
Messages
1,337
Reaction score
0
what O.o..
is this supposed to help you site load quicker?
is that what its for?
 

Oloty

Well-known member
Joined
August 6, 2013
Messages
61
Reaction score
0
Mσney said:
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?"
 
Top Bottom