PDFs Displayed are From Cache

  • 1
  • Problem
  • Updated 2 years ago
  • Not a Problem
Archived and Closed

This conversation is no longer open for comments or replies and is no longer visible to community members.

I am using the "URL Item" in the Schedule to view PDF report files that are generated by an internal server.
The URL Item address is: http://internalserver:8080/COMPANYDIR/Report1.pdf#page=1&zoom=125
and
http://internalserver:8080/COMPANYDIR/Report1.pdf#page=2&zoom=125
and
http://internalserver:8080/COMPANYDIR/Report2.pdf#page=1&zoom=125
and 
http://internalserver:8080/COMPANYDIR/Report2.pdf#page=2&zoom=125

Every 5 minutes these reports are updated and overwritten with the same names:
Report1.pdf and Report2.pdf

The first version of the PDFs that the Schedule saw from the "URL Item" keep getting displayed until either:
Riseplayer rebooted
or
Schedule Changed and Saved

Is there any way to stop the PDFs from being cached and always getting the fresh content?

Thanks
Photo of Glen

Glen

  • 254 Points 250 badge 2x thumb
  • Perplexed

Posted 2 years ago

  • 1
Photo of Robb

Robb, Official Rep

  • 76,676 Points 50k badge 2x thumb
Glenn,

Don't use the URL Item, instead use the Web Page Widget! You can set a refresh interval for that, and that way you can refresh however often you need to.

I hope that helps!
Photo of Glen

Glen

  • 254 Points 250 badge 2x thumb
Hi,
I have tried the Web Page Widget with external sites and it works; however, when I try to display content from an internal server it fails.
(Edited)
Photo of Robb

Robb, Official Rep

  • 76,676 Points 50k badge 2x thumb
Glen,

Oh, I'm sorry to hear that, typically an internal site would work as long as you check the Remove Validation checkbox:


Does the Display have access to the file at the internal location?
Photo of Glen

Glen

  • 254 Points 250 badge 2x thumb
I have gotten this working with the HTML Widget:
<!DOCTYPE html>
<html>
<head lang="en">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta charset="UTF-8">
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
    <title></title>
</head>
<body>

<body>
      <embed src="http://internalserver:8080/COMPANYDIR/Report1.pdf#zoom=125&page=1" type="application/pdf"  width="1080px" height="1920px"/>
 
</body>
</html>
Photo of Robb

Robb, Official Rep

  • 76,676 Points 50k badge 2x thumb
Fantastic. Thanks for sharing Glen!