• Resolved sdelnevo

    (@sdelnevo)


    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

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author shift8

    (@shift8)

    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

    Thread Starter sdelnevo

    (@sdelnevo)

    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

    Plugin Author shift8

    (@shift8)

    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.

    Thread Starter sdelnevo

    (@sdelnevo)

    Hi Guys

    That will be brilliant,
    many thanks

    Steve

    Plugin Author shift8

    (@shift8)

    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

    Thread Starter sdelnevo

    (@sdelnevo)

    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

    Plugin Author shift8

    (@shift8)

    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

    Thread Starter sdelnevo

    (@sdelnevo)

    Hi Guys

    been looking but can’t find anything concrete on this, the only place I have found really is here

    https://developers.google.com/web/tools/lighthouse/audits/cache-policy?utm_source=lighthouse&utm_medium=unknown

    that references 1-year Cache-Control: max-age=31557600

    Steve

    Plugin Author shift8

    (@shift8)

    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!

    Thread Starter sdelnevo

    (@sdelnevo)

    Hi guys

    Just dropped you an email with the url as requested

    Steve

    Plugin Author shift8

    (@shift8)

    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!

    Thread Starter sdelnevo

    (@sdelnevo)

    Hi Guys

    Google still says 30 days when I check on google page speed

    will check again later and update you

    Steve

    Thread Starter sdelnevo

    (@sdelnevo)

    Hi Guys

    sorry for the late reply

    Google page speed is fine now,

    many thanks for increasing this

    Steve

    Plugin Author shift8

    (@shift8)

    great to hear!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Add Expires headers’ is closed to new replies.