Add Expires headers
-
Hi Guys
is it possible to add Add Expires headers to our CDN content?
its set at 1d from your CDN but when served from the local site content has a 90day expiry
Steve
-
Hello Steve,
Are you interested in being able to define custom expires headers for your content? Or would you want us to somehow honour what your server may be setting (i.e. 90day) ?
Thanks
Hi, and thanks for getting back
if we could define custom expire headers that would be brilliant, if not I’m guessing the harder route would be to honour what we currently use
Steve
Ok I’ll look into either option. The honouring of expires headers may be easier because we wouldnt have to build in the extra custom option into our configuration management system but this is definitely a good idea and would give people more options. I’m sure there are other options to provide as well once we go down this route.
Hi Guys
That will be brilliant,
many thanksSteve
Apologies for the delay. I have increased the default expires setting from 1 day to 7 days for static assets and 5 days to 30 days for anything in the wp-content/uploads folder, pending the implementation of this as a setting that people can control.
Hopefully this alleviates the issue a bit while we transition to a more settings-based system
Hi
really sorry for not getting back sooner
that’s brilliant many thanks for doing this
GTmetrixc is fine, no issues regarding the expired headers, but google page speed still mentions to increase it, is that because they (google) are looking for much longer expires perhaps 1 year?
Steve
Steve,
I’d be curious what they recommend. If google recommends a year for expires then I would be inclined to put that in across the board.
Is there any way you can dig deeper to that recommendation to see what the best practice is?
Thanks
Hi Guys
been looking but can’t find anything concrete on this, the only place I have found really is here
that references 1-year Cache-Control: max-age=31557600
Steve
Steve,
Would you mind providing your site URL, or send it in an email to [email protected] ?
I wouldnt mind running that test to see those messages.
Thanks!
Hi guys
Just dropped you an email with the url as requested
Steve
Steve,
I replied to you directly. We have changed the browser caching from 30 days to 1 year as a result of best practice recommendations by google.
No idea why 1 year is the magic number but at the very least this will help you score a higher score with the pagespeed type scanning services.
Thanks!
Hi Guys
Google still says 30 days when I check on google page speed
will check again later and update you
Steve
Hi Guys
sorry for the late reply
Google page speed is fine now,
many thanks for increasing this
Steve
great to hear!
The topic ‘Add Expires headers’ is closed to new replies.