Can not go back to preview page due to cache overwriting #341

Closed
opened 2026-01-19 18:29:57 +00:00 by michael · 1 comment
Owner

Originally created by @programmerjake on GitHub.

If I go to a file-preview page (like https://transfer.sh/GkNVP/output.png), then click on the "home" link, if I then try to use the back button in the web browser, it tries to download instead of preview the file.

If I disable the browser cache, the problem goes away.

I'm using Google Chrome 60.0.3112.113 on X11 Linux x86_64.

From what I can tell, the preview page links to itself to display the image, causing the browser to replace the cached copy of the web page with the image because they both have the same URL, then, when I go back to that page, the browser loads the image from the cache instead of the web page.

Originally created by @programmerjake on GitHub. If I go to a file-preview page (like <https://transfer.sh/GkNVP/output.png>), then click on the "home" link, if I then try to use the back button in the web browser, it tries to download instead of preview the file. If I disable the browser cache, the problem goes away. I'm using Google Chrome 60.0.3112.113 on X11 Linux x86_64. From what I can tell, the preview page links to itself to display the image, causing the browser to replace the cached copy of the web page with the image because they both have the same URL, then, when I go back to that page, the browser loads the image from the cache instead of the web page.
Author
Owner

@paolafrancesca commented on GitHub:

cannot reproduce

@paolafrancesca commented on GitHub: cannot reproduce
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#341