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

What are expires headers and how to add them?

make money online
letsplay Offline referral

Posts: 274
Joined: Jul 2013
Reputation: 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

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,507
Joined: May 2013
Reputation: 109

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

images: jpg, gif, png

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:

<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"
ExpiresByType text/css "access plus 1 month"
# Javascript
ExpiresByType application/javascript "access plus 1 year"

Google this topic

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