Re: Does PHP do this differently?



On Oct 31, 4:56 am, Gordon <gordon.mc...@xxxxxxxxxxxx> wrote:
On Oct 31, 1:17 am, Bill H <b...@xxxxxxxxx> wrote:





I have a flash app that displays a lot of images that are streamed
through a script running on the website server. Originally this script
was in perl and I would load the image into flash using something
like:

/cgi-bin/image.pl?image=1234

I quickly realized that flash was showing me cached images so I added:

/cgi-bin/image.pl?image=1234&somerandomnumber

And all was good. Now I have rewritten the script in php to open the
file and stream it out with the correct headers and it works fine. But
I want to go back to the caching in flash for certain images that
don't change. So I dropped the randomnumber part but still, every
image is loaded, no cached image is shown. Is it possible that php is
sending some "no-cache" header before I send out my content type
headers? If so, how can I disable it?

Bill H

If you explicitly set cache-related headers in your script then they
will override the default headers. If you're using FireFox and have
the FireBug extension then take a look at the headers that are being
sent with it.  There's also a headers addon for Internet Explorer
called iehttpheaders that you might want to look into.  You should
with these tools be able to check that the headers the server is
actually sending are the same as you're expecting.- Hide quoted text -

- Show quoted text -

Thanks Gordon and C. I wasn't sure if there was a cache issue, I threw
that in there cause I read about it in another thread. I checked and
there is a "no-cache" in the php.ini and I am having the web admin
remove that.

Bill H
.



Relevant Pages

  • Re: Does PHP do this differently?
    ... Bill H schreef: ... through a script running on the website server. ... I quickly realized that flash was showing me cached images so I added: ... file and stream it out with the correct headers and it works fine. ...
    (comp.lang.php)
  • Re: Does PHP do this differently?
    ... through a script running on the website server. ... I quickly realized that flash was showing me cached images so I added: ... Now I have rewritten the script in php to open the ... file and stream it out with the correct headers and it works fine. ...
    (comp.lang.php)
  • Re: Does PHP do this differently?
    ... through a script running on the website server. ... I quickly realized that flash was showing me cached images so I added: ... file and stream it out with the correct headers and it works fine. ...
    (comp.lang.php)
  • [PATCH] headercheck: add dependency check and improve speed
    ... Introduced a perl based script to do the actual check of the headers. ... +# file generated during checktime listing depfiles and incfiles ...
    (Linux-Kernel)
  • Re: What happened ??
    ... The Headers of a News Posts can be fetched very ... & as Alio says, the headers are nicely labelled, so the Script ... an eMail Address is a sure way of ending up with spam Sent to it! ...
    (uk.people.silversurfers)