Re: totally WEIRD bug? Firefox caching? [message #185359 is a reply to message #185350] |
Thu, 20 March 2014 08:29   |
Gabriel
Messages: 11 Registered: March 2014
Karma:
|
Junior Member |
|
|
On 19/03/2014 23:43, The Natural Philosopher wrote:
> On 19/03/14 21:39, Gabe wrote:
>> On 19/03/2014 17:25, The Natural Philosopher wrote:
>>> I have TWO IDENTICAL PHP FILES.
>>>
>>> They are supposed to display an image got from a database.
>>>
>>> One does. The other does not.
>>>
>>> It persistently tells me the image is corrupted.
>>>
>>> I have even copied one file that works directly over the other. It still
>>> doesn't work.
>>>
>>>
>>> I have debugged it, got it to output the image to a file and read the
>>> file successfully.
>>>
>>> Something on firefox now just assumes its corrupted and won't clear its
>>> cache. I've shut down firefox, Ive changed its name I've clearded its
>>> cache.
>>>
>>> WTF is going on??
>>>
>>>
>>>
>>
>> Check the response headers sent for each request, are they both set to
>> image/jpg or at least the same?
>>
> they are. Image/png
> same headers, same code, same data, same website, same server.
>
>> Cheers
>>
>> Gabe
>
You seem pretty certain it is firefox's issue. Did you try another
browser or completely deleting your user profile from Firefox?
How about outputting cache control headres like the following that I
ripped off the PHP site?
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
|
|
|