Originally posted by: PookyBoy
The php board, avatar.php and the actual images are all located on different servers. I'm no expert so I don't really understand what you just said. Thanks for your replies.
Originally posted by: amdfanboy
Originally posted by: PookyBoy
The php board, avatar.php and the actual images are all located on different servers. I'm no expert so I don't really understand what you just said. Thanks for your replies.
I think he is saying that it is caching the final location of the image instead of the locaiton of the script so the script isn't run when you visit the cache.
Originally posted by: kamper
Originally posted by: amdfanboy
Originally posted by: PookyBoy
The php board, avatar.php and the actual images are all located on different servers. I'm no expert so I don't really understand what you just said. Thanks for your replies.
I think he is saying that it is caching the final location of the image instead of the locaiton of the script so the script isn't run when you visit the cache.
That makes sense. So it doesn't cache any pages but it does cache certain headers? Let's walk through that:
-browser gets html
-browser sees that it needs an image found at avatar.php
-browser inspects cache, does not have avatar.php cached, tries to retrieve avatar.php
-gets a redirection back from avatar.php and caches that redirection even though it is not supposed to cache avatar.php
-gets picture, goes on it's merry way
...next time...
-browser sees it needs an image found at avatar.php
-browser does not have avatar.php cached but does remember that it was redirected to a certain other url last time and goes there again...
That seems incorrect to me, but it is certainly a remote case.
PookyBoy, do you have the LiveHttpHeaders extension installed? If so, could you do the following:
-clear the browser cache
-bring up LiveHttpHeaders (pops up in left panel)
-request a single page that will contain an avatar, just as you normally would
-inspect the headers that have gone by
-see if you can find the request going out for avatar.php and the response coming back in
-post both
-repeat without clearing the cache first
Originally posted by: kamper
The script meaning avatar.php? But it should never check the dates of avatar.php, it was told not to cache it so it shouldn't have it. If it sends a request for avatar.php with the If-not-modified-since: header (or whatever it's called) that header should be ignored and avatar.php should be run again because the php processor should know that the page is expected to chage every time. Or, maybe the web server sees that header and inspects the actual avatar.php file before passing control to the php processor? No, if that were the case php would never work properly...
D@mn you, PookyBoy, I'm trying to do homework here :|
Originally posted by: amdfanboy
No one tried my script?
Originally posted by: kamper
Originally posted by: amdfanboy
No one tried my script?
It looks pretty funky. Does that run under a default php installation or does it require those funky graphics libraries?
PookyBoy: how's it going? I'm curious to find out if that does it
Originally posted by: kamper
Originally posted by: amdfanboy
No one tried my script?
It looks pretty funky. Does that run under a default php installation or does it require those funky graphics libraries?
PookyBoy: how's it going? I'm curious to find out if that does it
Originally posted by: kamper
Oops, I did see your last reply, just not the middle sentence Glad you got something working.
ps. did you reflush your cache before trying my idea?
Originally posted by: PookyBoy
Originally posted by: kamper
Originally posted by: amdfanboy
No one tried my script?
It looks pretty funky. Does that run under a default php installation or does it require those funky graphics libraries?
PookyBoy: how's it going? I'm curious to find out if that does it
I guess you missed my last reply. Unfortunately I implemented the changes you suggested but it's still the same.
I ended up using the imagerotator script from http://automaticlabs.com/products/rotator
It works good. The image changes even without manual refresh. The code is beyond me though.
Sorry amdfanboy, I didn't try your script now that I'm using that one.
Thank you guys.