Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
Think about Loose Coupling
 
PerlMonks  

Re: Re: Item not refreshing with the page

by bobn (Chaplain)
on Jan 25, 2004 at 00:53 UTC ( [id://323930]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Item not refreshing with the page
in thread Item not refreshing with the page

I've seen images refuse to refresh even when the rest of the page was. If this still happens, try somethng like:

$dummy = rand(1000); print "<center><img src=\"test.png?x=$dummy\"></center>";
to convince the browser (and any intermediate caching things) that the image is in fact query.

--Bob Niederman, http://bob-n.com

All code given here is UNTESTED unless otherwise stated.

Replies are listed 'Best First'.
Re: Re: Re: Item not refreshing with the page
by sulfericacid (Deacon) on Jan 25, 2004 at 02:37 UTC
    Your code is engenius, it really is. That totally fools the browser into thinking it's something it can't cache and it worked. That's utterly amazing, thank you for this tip!

    And thank you to the others. I didn't know an image will stay in cache as long as the name and size doesn't change. I just thought it reloaded the image if it realizes the page has been updated since the last time it's visited. Thanks for that information.



    "Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

    sulfericacid
      I can't claim credit for originating this - I got the idea from a list or a newsgroup when I was fighting a similar issue - glad it helped.

      --Bob Niederman, http://bob-n.com

      All code given here is UNTESTED unless otherwise stated.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://323930]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.