BUG: Vivaldi only saves image instead of displaying from a direct discord link
-
Vivaldi only saves image instead of displaying from a direct link... this is weird. It seems to have to do with caching. I can reproduce it with images from discord. Doing the same steps on say, imgur, do not show this behavior.
Steps:
- Upload an image to discord, via drag and drop, or find someone who's done that, such that the image is actually hosted by discord.
- Click the link to open it in Vivaldi. Image displays as expected.
- Close the tab.
- Double check it still works... click the link in discord again. Image displays.
- Close the tab,
- Re-open the closed tab, by right clicking or using the garbage can.
- Dialog box appears offering to save/save as/open the file. (Not expected!)
- Any further attempts to open that link, either copy/pasting or clicking from discord again will show the dialog box instead of actually displaying the image.
- Press control-shift-del and clear your cache for the past hour. Try the link again. Image will display as expected.
So, I dunno if it's some weird combo with the discord cdn and the browser cache or what. Tried on chrome browser and it does not do this. It also works on guest mode, probably because it's not keeping things in the cache.
-
Hi,
--
Please,
On each report add:- Vivaldi Version |
- Since when happens |
- OS / Version / DE
|
--
Try on a New
's Profile:
- "Right side" |
Rename it as Tests or something related, and use it as a Clean Profile, to test without custom configurations that can alter the original operation.
Since the result, check:
- Active Flags / Experiments or Switches
- Ad Blocker - Tip
- Site Data
- Clean Cache
- Clean Service Workers
vivaldi://serviceworker-internals/
- Extensions - Tip
- Custom Menus
Or fill in a Bug Report and please, add the VB# to the topic for follow up.
--
"Off Topic Tip"
Follow the Signature's Backup | Reset link.
Take the opportunity to start a Backup plan and even create a Template Profile.
Windows 7 (x64)
Vivaldi Backup | Reset + Extra Steps -
@flatline23 Hi - this is not a bug, it's a quirk of how the web server works, and it happens in all browsers.
The reason is that once the image is cached, the browser will send a
if-modified-since
header to the web server with thelast-modified
date it received from the server.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Modified-Since
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-ModifiedThis server will then reply with a header of:
content-disposition: attachment
This tells the browser to download the image instead of displaying it.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-DispositionSo your guess about cache and CDN is correct. Chrome on my system behaves the exact same way.
Also not sure what you mean by "Click the link to open it in Vivaldi"?
If I click an image in the Vivaldi Discord, it displays the image on the page, it does not open in a new tab.I tested with this attached image: https://discord.com/channels/170121320825225218/170121320825225218/1055531388276850758
This is easy to see using curl:
$ curl -I -H "if-modified-since: Thu, 22 Dec 2022 17:04:53 GMT" "https://media.discordapp.net/attachments/170121320825225218/1055531387970654290/Screenshot_2022-12-22_at_12.04.29_PM.png" HTTP/2 304 date: Tue, 27 Dec 2022 01:06:18 GMT cf-ray: 77fe2722bd2e1c06-OSL access-control-allow-origin: * age: 3562 cache-control: public, max-age=31536000 content-disposition: attachment expires: Wed, 27 Dec 2023 01:06:18 GMT last-modified: Thu, 22 Dec 2022 17:04:53 GMT vary: Accept-Encoding cf-cache-status: HIT report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=gfAefH0o47W%2BPK2lsA1TBZ9xRxixo6eDX33MAwBtJZ2YjLjyUMRZ%2FCtJxwauCPV2TQ2BrC6pEl2417B30wjYw8Prq%2Bss4XvwLkBBautp4B4dbDNsC4bAofGPmXHYqi%2FHQ7nj1Fi8"}],"group":"cf-nel","max_age":604800} nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800} set-cookie: __cfruid=dc16363008829ab3fa178272c8271a4b877f36ed-1672103178; path=/; domain=.discordapp.net; HttpOnly; Secure; SameSite=None x-robots-tag: noindex, nofollow, noarchive, nocache, noimageindex, noodp server: cloudflare