Top of Page
Top of page

Expires Headers

expiresheadersUnless a component on your system changes the Expires headers, your web pages expired in 2001!  YSlow and Pagespeed pay attention to headers, shouldn't you?  With Expires Headers, your pages can expire any time from now into the next 59 years, if you wish.

Frustrated by low scores on YSlow, I looked into modifying header fields to satisfy at least one more item on the Yahoo YSlow checklist.  Suprisingly, I found there wasn't a Joomla extension to provide this functionality!

Expires Headers allows an administrator to set a default expiry time period for all pages, and optionally on a per-menuitem basis.

Unfortunately, this plugin cannot address the header values for your image, CSS or Javascript files.  You'll need to contact your hosting provider to determine if your host supports setting default headers in .htaccess

Here is an example that will set your expires headers for these file extensions ahead 10 years.

<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Expires "Wed, 15 Apr 2020 20:00:00 GMT"
Header set Cache-Control "public"

RicheyWeb Joomla extensions are free! Additionally, they contain no advertisements or links back to If you feel that I have blessed you, then you can bless me. Click to make a donation to fund future development.

RicheyWeb Extensions have been downloaded 596,591 times.
118 individuals and companies have made donations supporting future development.
Thank you David Goode!