FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » totally WEIRD bug? Firefox caching?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: totally WEIRD bug? Firefox caching? [message #185359 is a reply to message #185350] Thu, 20 March 2014 08:29 Go to previous messageGo to previous message
Gabriel is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: sqlite2 vs sqlite3
Next Topic: willing to hire someone who knows both JS and PHP
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Feb 26 06:51:07 GMT 2025

Total time taken to generate the page: 0.04096 seconds