How to refresh/reload embed of application/pdf?

后端 未结 1 1901
误落风尘
误落风尘 2021-01-18 06:29

I have an embed code using application/pdf to show a pdf document on the page.

I used javascript to change the src attribute of the embed, which a link is clicked. t

1条回答
  •  旧巷少年郎
    2021-01-18 06:45

    How do you embed the PDF? If you are using an iframe, you can use the reload method.

    
    
    
    

    You can also append a random string (like the current timestamp) as a GET parameter to the PDF URL to make sure the browser doesn't use its cache.

    0 讨论(0)
提交回复
热议问题