octue / planex-site

The octue website front end
https://planex-site.vercel.app
0 stars 0 forks source link

Extend CDN asset cache time #48

Open thclark opened 3 years ago

thclark commented 3 years ago

Bug report

What is the current behavior?

People have to repeatedly download images on successive views of the site, because the cache policy we've set up is very short. This appears as a warning on lighthouse reports.

What is the expected behavior?

In gcp we should extend the cache duration (to days or weeks) which will allow us to improve users' perceived performance on repeat visits to the site.

We should do this AFTER we're done with the initial development push because even though caches are busted with new content, so we don't have any cache conflict problems (eg images are served with their hash in the filename so we're not displaying old content accidentally) we want to keep a sense of what it's like for users on their first visit.