dkim18
asked on
Refresh image on web browser
Hi Experts,
I generated jfree chart image on web browser and it displays different chart in FireFox when I hit different link, but not in IE9.
Since it is working FF, I am thinking it has something to do caching issue in IE.
This is the source from the popup windows that displays the chart.
I added these in head tag, but didn't help.
<meta Http-Equiv="Cache-Control" Content="no-cache">
<meta Http-Equiv="Pragma" Content="no-cache">
<meta Http-Equiv="Expires" Content="0">
<meta Http-Equiv="Pragma-directi ve: no-cache">
<meta Http-Equiv="Cache-directiv e: no-cache">
Any idea?
I generated jfree chart image on web browser and it displays different chart in FireFox when I hit different link, but not in IE9.
Since it is working FF, I am thinking it has something to do caching issue in IE.
This is the source from the popup windows that displays the chart.
I added these in head tag, but didn't help.
<meta Http-Equiv="Cache-Control"
<meta Http-Equiv="Pragma" Content="no-cache">
<meta Http-Equiv="Expires" Content="0">
<meta Http-Equiv="Pragma-directi
<meta Http-Equiv="Cache-directiv
<map id="imageMap" name="imageMap">
</map>
<html>
<head>
<meta Http-Equiv="Cache-Control" Content="no-cache">
<meta Http-Equiv="Pragma" Content="no-cache">
<meta Http-Equiv="Expires" Content="0">
<meta Http-Equiv="Pragma-directive: no-cache">
<meta Http-Equiv="Cache-directive: no-cache">
<title></title>
</head>
<body>
<img src="http://localhost:8080/xxxx/servlet/ChartViewer" border=0 usemap="#imageMap">
</body>
</html>
Any idea?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Gary's right, if that's a 'generated page' then that's easy to do. A common method appends a current timestamp to the URL.
ASKER