English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Thanks Paul for your answer: it guided me, but...
I am not using ASP (God Forbid!), but PhP and AJAX: images are rebuilt after each user input and resent to the browser under ajax to update the "image" division.
Using this header
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
before the tag on the index.php solves the problem with IE, but NOT in Firefox.
Any idea?

2007-09-15 00:51:35 · 1 answers · asked by just "JR" 7 in Computers & Internet Programming & Design

1 answers

It might be the date in the Expires header. You can't just make up a date. It has to be valid. (July 26, 1997 did NOT fall on a Monday.)

I don't use PHP. There are too many glitches and gotchas. Write it in Perl, or in C, or in Fortran, or anything else, and give it a name starting with nph such as nph-index, and the headers will work right. With PHP, you have no idea what is going to happen until you experiment around, and once you get it working, you can count on it coming undone when the next version of PHP is released.

I have no idea why the folks behind PHP insist on breaking so much PHP code every time they release a new version. Maybe they're trying to convince you to buy their compiler instead of using PHP for free?

Real programmers don't tolerate such crap. For instance, most C programs, COBOL programs, Fortran programs, etc., from the 1970s will still work and will still recompile without any modifications.

2007-09-15 01:06:24 · answer #1 · answered by Anonymous · 0 0

fedest.com, questions and answers