Slide 27
Slide 27 text
For items that change rarely on your site, like your logo or favicon, you can set
the images to expire later. For items that tend to change more often, you can
shorten the time. Again you can do this on a per file or file type basis.
You can set the expiry times in minutes, hours, day, months & years.
The expiry time to set depends on 2 things:
○ Resource Type
■ CSS
■ JS
■ Images
○ Change Frequency
■ CSS, JS files are less likely to change after development.
■ On the other hand images may change and mostly managed from the
back-end. I.e. product images
● Therefore, we can set different time for each resource type.
● For e.g. CSS ~ 1 month, JS ~ 1 month, Images ~ 7 days etc.
● Note: Expires Headers don’t improve page speed for a first visit, after all
you need to have downloaded the files at least once to reference them
again. But for return visitors, page load times will be faster.