feat(storage-*): add support for browser-based caching via etags
This PR makes changes to every storage adapter in order to add browser-based caching by returning etags, then checking for them into incoming requests and responding a status code of 304 so the data doesn't have to be returned again.
Performance improvements for cached subsequent requests:
This respects disableCache in the dev tools.
Also fixes a bug with getting the latest image when using the Vercel Blob Storage adapter.
Can you verify a file with spaces in the name uploaded before this change can still be retrieved?
Can you verify a file with spaces in the name uploaded before this change can still be retrieved?
I don't think this change affects those. Paul simply just moved the code around. No packages were bumped either.
I don't think this change affects those. Paul simply just moved the code around. No packages were bumped either.
Yeah the PR changed a bit since the initial changes
🚀 This is included in version v3.9.0