Uploaded images displayed after a few minutes
am 30.12.2007 20:52:27 von Kamyk
Hello!
I have created a script for uploading photographs with size less than 50 KB.
Everything works fine, but the images are viewable after a not so long time, but
not at once. I would like to have the photographs available just after
successful upload. Can you tell me, maybe there is some way to do that? Is it a
my hosting server fault?
Thank you in advance
Marcin from Poland
Re: Uploaded images displayed after a few minutes
am 30.12.2007 21:08:40 von colin.mckinnon
On 30 Dec, 19:52, "MZ" wrote:
> Hello!
>
> I have created a script for uploading photographs with size less than 50 KB.
> Everything works fine, but the images are viewable after a not so long time, but
> not at once. I would like to have the photographs available just after
> successful upload. Can you tell me, maybe there is some way to do that? Is it a
> my hosting server fault?
>
Are you putting the image at a URL your browser has recently requested
- i.e. the most likely explanation is that the server is making the
file available immediately, but your browser has a file in its cache
with caching instructions.
Try iehttpheaders for MSIE or TamperData for Firefox to find out if
that's really what's going on.
Of course your ISP could be running some non-realtime filesystem
clustering solution (like a crontab'ed rsync) but you pay them money
for support.
C.
Re: Uploaded images displayed after a few minutes
am 30.12.2007 21:35:57 von Kamyk
Uzytkownik "C. (http://symcbean.blogspot.com/)"
napisal w wiadomosci
news:013bf46f-572d-4c0b-880a-fcf11c13206f@n20g2000hsh.google groups.com...
> On 30 Dec, 19:52, "MZ" wrote:
>> Hello!
>>
>> I have created a script for uploading photographs with size less than 50 KB.
>> Everything works fine, but the images are viewable after a not so long time,
>> but
>> not at once. I would like to have the photographs available just after
>> successful upload. Can you tell me, maybe there is some way to do that? Is it
>> a
>> my hosting server fault?
>>
>
> Are you putting the image at a URL your browser has recently requested
> - i.e. the most likely explanation is that the server is making the
> file available immediately, but your browser has a file in its cache
> with caching instructions.
>
> Try iehttpheaders for MSIE or TamperData for Firefox to find out if
> that's really what's going on.
>
> Of course your ISP could be running some non-realtime filesystem
> clustering solution (like a crontab'ed rsync) but you pay them money
> for support.
>
> C.
>
Ok thank you for help.
Can you explain me one more thing if I understood you correctly.
If I upload the page before sending a header, my page shows me the image I have
just changed.
Is it true? Or no and I should clean up the cache even after uploading the
images before
sending header?
My file is:
//here I put a code to upload the page
?>
my title
Thank you again for your help C.
Marcin