#Caching of payload files

3 messages · Page 1 of 1 (latest)

drowsy wind
#

By default, payload sets the cache-control header to public, max-age=0 on static assets.

  1. Why not caching the JS/CSS/fonts/svg files since they could contain a hash in the filename to prevent cache issue for the user ?

  2. Why does the style.css file doesn't contains any hash ?

keen wren
#

@drowsy wind This is a good idea for a feature enhancement. We use webpack which can definitly help with hashing. Are you interested in making a PR to Payload for this?

drowsy wind