I am using Flash Builder 4. I have a program where PDF files are displayed in a data grid. I use this:
<cfdirectory action="list" directory="#TRIM(directoryPath)#/#TRIM(EmployeeID)#/Daily/" name="qDirectory">
<?xml version="1.0" encoding="utf-8"?>
<file name="#qDirectory.name#" type="#qDirectory.type#" size="#qDirectory.size#"/>
This gets the files and then a datagrid displays the PDFs. Works only SOME of the time. I think the page gets cached and some browsers dont refresh the whole thing, meaning run the HTTPService. So if the program gets refreshed the datagrid comes back blank.
What could be going wrong?
Is there a setting to reload all parts?
one solution is to make the url unique each time it is requested.
url = url +"?ts=" + new Date().time.toString();
One solution would be to fool the browser by generating a unique request url each time( as mentioned by subeesh' post).
The other way is by modifying server side headers on the requested resources as explained below -