Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

What are expires headers and how to add them?

Ads
banner
banner
banner
letsplay Offline referral

Posts: 274
Joined: Jul 2013
Reputation: 1

#1
Senior Member
I am working on my website optimization and the the SEO tool I am using tells me that I need to specify or add expires headers what is that ad how to d it?
riverduo Offline referral

Posts: 14
Joined: Apr 2015
Reputation: 0

#2
Junior Member
it's related with cache function. To speed up your rendering page, browser taking static data (image, css, etc) and cache it.
If you did not specify it, browser did not knew when he have to cache it again.

if you use wordpress I think there are plugin for that, if not you can set header expire in your httaccess file.
marcus_avrelius Offline referral

Posts: 2,424
Joined: May 2013
Reputation: 102

#3
Support Team
In SEO website load time is important and the website loads faster when it takes:

images: jpg, gif, png
favicon/ico
javascript
css


from the browser cache and not from the server. However you have to specify when these files will have be renewed or will expire so that the web-browser will download them from the server.

Open your .htaccess file and add this code to it:

Code:
<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Default directive
ExpiresDefault "access plus 1 month"
# My favicon
ExpiresByType image/x-icon "access plus 1 year"
# Images
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
# CSS
ExpiresByType text/css "access plus 1 month"
# Javascript
ExpiresByType application/javascript "access plus 1 year"
</IfModule>





User(s) browsing this thread: 1 Guest(s)