silverstripe / silverstripe-asset-admin

Silverstripe assets gallery for asset management
BSD 3-Clause "New" or "Revised" License
19 stars 78 forks source link

File Uploads Remembered on page refresh on versions 1.10 - 1.13 #1425

Open MichaelHoughton opened 7 months ago

MichaelHoughton commented 7 months ago

There is an issue with browser caching on version 1.10 - 1.13. This isn't an issue on version 1.9 or lower and on version 2.

The problem comes when a file is uploaded, and then the user moves to another page. So, for example, if a user uploads a file on an edit page, then publishes it, then moves to another page (say the Add Item page), the previously uploaded file is remembered and shows in the file uploader.

e.g. when coming to a new page, where the file uploader should be empty, it shows the previously uploaded file:

asset-admin1

When doing a hard refresh (CTRL + R) the file uploader is then empty. The problem appears to be related to the browser remembering the previous uploaded file.