
I'm sure if it doesn't work on IE or Safari there's a workaround. Not sure if it works in Safari since i do not have a mac to test it. The only think you can do, is opening the Blob url in a new tab with:Īfter going through the same scenario as answer, plus having the headache issue of an adblock that closed the tab opened with window.open in a split second, I found a solution that worked for me.

You see the pdf but at the same time, you lose the buffer information.You point your page url to read the buffer.The browser stores the buffer inside the tab.So, when you generate the blob and you redirect your current tab to point to the generated blob url, you lose the cache.

The file doesn't exist but its only cache stored inside the browser. So, initially I was really thinking of some sort of black magic going around the browser, then I figured out the problem: However, if you either try to refresh the page or download the pdf on your machine, it doesn't work. Well, you can see the pdf rendered on the page so you might be fooled to thinking that your pdf is loaded fine. After having spent an entire day working on a similar issue, I understood where the problem was so I can now share my knowledge with you.īasically, this kind of problems are generated when you render the Blob inside the already opened browser tab so your page url changes in something like:īlob: The wrong procedure for requiring a pdf would be something like this:
