vendredi 29 juin 2018

Load PDF from API without caching

I generate a report by calling an API that return a PDF to the client. Problem is after one load the call is cached and the API isn't called anymore so the report won't be updated if it need to be.

I use this piece of code to get my report in a new window:

$window.open("generate/my/pdf");

Is there another way that will call the API every time (and won't trigger some anti pop-up)?




Aucun commentaire:

Enregistrer un commentaire