| Pages: [1] :: one page |
| Author |
Thread Statistics | Show CCP posts - 3 post(s) |

Kw4h
|
Posted - 2006.09.23 07:31:00 -
[1]
Dear who-ever reads this, I created this IGB page that mainly has an image in it wich updates every 5 minutes. Though, whenever you refresh a page in the IGB it won't correctly update and display the image.
A workaround is to right-click the image, click on reload image, and the reload the page. But that's just plain annoying to do so every time, especially when you log on next day and you still have to manually refresh.
Is there a known fix for this? If not, could this please be fixed in the next IGB update?
Cheers, - Kw4h
|
|

Traveler

|
Posted - 2006.09.23 08:25:00 -
[2]
How do you reference the images. The IGB automaticly updates images that are created by php scripts.
Traveler UI programmer |
|

Kw4h
|
Posted - 2006.09.23 08:44:00 -
[3]
the image is drawn, and stored as a .png file on the server. php script goes like this:
------- if (image older than 5 minutes) { redraw(); }
display(); -------
So it's not a 'direct' output from php, but a real image.
|

Mitchman
Omniscient Order
|
Posted - 2006.09.23 11:25:00 -
[4]
Does the IGB even use the cache header in the http request? What does the server send?
|
|

Traveler

|
Posted - 2006.09.23 12:45:00 -
[5]
As with all other browsers, write a php script that outputs the image to stdout and reference this script in the <img> tag.
Traveler UI programmer |
|

Kw4h
|
Posted - 2006.09.23 17:03:00 -
[6]
Edited by: Kw4h on 23/09/2006 17:05:33 doing so right now: ---------- $im = imagecreatefrompng('./images/map.png'); imagepng($im); imagedestroy($im); ---------- <img src="./image.php"></img> ---------- Doesn't work like it should either, i still have to 'right click->reload image' before it refreshes
|

Mitchman
Omniscient Order
|
Posted - 2006.09.24 01:33:00 -
[7]
Try sending a Cache: no-cache header with the image.
|

Kw4h
Dragon's Rage Ascendant Frontier
|
Posted - 2006.09.24 10:11:00 -
[8]
doesn't work either. i added a header to the image.php, and a header on the page where the image is displayed. It's just being ignored.
|

Mitchman
Omniscient Order
|
Posted - 2006.09.24 11:56:00 -
[9]
Not really surprised that the caching headers are ignored by the IGB. Shrug.
|

Kw4h
Dragon's Rage Ascendant Frontier
|
Posted - 2006.09.24 12:06:00 -
[10]
then I gots to hack in zee interface!
Or I could wait until the next patch and hope that they include a fix for this 
|

Allen Miles
Caldari The Miles Corporation
|
Posted - 2006.09.24 16:41:00 -
[11]
This might work or not, but if there is anyway to put a qstring at the end of the image when loading that might trigger the server to re-download it.
so instead of displaying "image.png" put the date/time at the end of it like "image.png?date=<?php date/time-code?>"
Use seconds so it will be different everytime.
The Miles Corporation
Host Your EvE Images Here |

Kw4h
Dragon's Rage Ascendant Frontier
|
Posted - 2006.09.24 18:14:00 -
[12]
sounds like something that could work i'll give it a shot tomorrow.
thanks for the tip :)
|
|

Traveler

|
Posted - 2006.09.25 06:33:00 -
[13]
Here is a working example for the IGB: http://bughunters.addix.net/igbtest/imagetest4.html
The php code looks as following:
Quote:
<? header ("Content-Type: image/png\nPragma: no-cache"); if (isset($_REQUEST["n"])) $n=$_REQUEST["n"]; else $n=50; $im=imagecreate(250,150); $darkblue=ImageColorAllocate($im, 0,0,55); $lightblue=ImageColorAllocate($im, 150,150,255); $lightblue2=ImageColorAllocate($im, 180,180,255); $lightblue3=ImageColorAllocate($im, 210,210,255); $white=ImageColorAllocate($im, 255,255,255); for ($i=0;$i<$n;$i++) imageline($im,rand(0,249),rand(0,149),rand(0,249),rand(0,149),$lightblue); for ($i=0;$i<$n;$i++) imageline($im,rand(0,249),rand(0,149),rand(0,249),rand(0,149),$lightblue2); for ($i=0;$i<$n;$i++) imageline($im,rand(0,249),rand(0,149),rand(0,249),rand(0,149),$lightblue3); imagepng($im); ?>
Traveler UI programmer |
|

Mitchman
Omniscient Order
|
Posted - 2006.09.25 11:31:00 -
[14]
Originally by: Traveler Here is a working example for the IGB: http://bughunters.addix.net/igbtest/imagetest4.html
The php code looks as following:
Quote:
<? header ("Content-Type: image/png\nPragma: no-cache");
EVE doesn't support the HTTP 1.1 "Cache-Control: no-cache" header?
|

Allen Miles
Caldari The Miles Corporation
|
Posted - 2006.09.26 14:31:00 -
[15]
Originally by: Kw4h sounds like something that could work i'll give it a shot tomorrow.
thanks for the tip :)
Did it work?
||M||
Add Your Images or Add Your Corp to the DB! |

Kw4h
Dragon's Rage Ascendant Frontier
|
Posted - 2006.09.27 17:31:00 -
[16]
I just tried the thing that Traveler suggested. It appears that eve does support the "Pragma: no-cache" header, and that works great :)
Thanks for your suggestion though :) - Kw4h
|
| |
|
| Pages: [1] :: one page |
| First page | Previous page | Next page | Last page |