mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #526] ETag and Last-Modified does not work correctly on Microsoft Edge if Cache-Control: no-cache is not present in response header #305
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hucsmn on GitHub (Jan 13, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/526
Problem
Browse a dufs directory list view on Microsoft Edge (131.0.2903.146), click to download arbitary file.
Then modify the file content, and click to download again.
The second downloaded file will keep its content unchanged, which is unexpected.
This behavior could not be reproduced on Google Chrome (131.0.6778.265).
I have tried to add a
Cache-Control: no-cacheresponse header infn handle_send_file():After clearing browser cache, the above unwanted behavior become irreproducible on Microsoft Edge.
Configuration
Default dufs configuration.
Environment Information
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0)@sigoden commented on GitHub (Jan 17, 2025):
I couldn't reproduce the issue you mentioned in Edge browser.
But it is a good practice to set cache-control:no-cache for data that may be dynamic, and I am still going to add a PR to support it.