|
|
 |
Re: FN-FORUM: lightbox
date posted 26th September 2007 19:24
[EMAIL REMOVED] wrote:
> How do you stop images from being cached? I am using light box and if you
> click on the same image twice in succession you don't see the loading image
> the second time ass it is cached and the site owner would like to see it.
You can set do-not-cache stuff through http headers. I think this would
be best done by server config, although the images could be piped
through a php script or similar which would be able to add this header.
Despite the daft requirement, the best solution is to change lightbox to
insert a delay between loading the image and displaying it. That way you
aren't wasting bandwidth.
In your situation I would be saying one of the following depending upon
which I thought would work best. I might use all of them.
This is a bad idea because:
1) Slowing down your site is not in your interest, users have poor
attention span.
2) Increasing demand on your server is not in your interest, increased
cost, reduced performance.
3) The amount of development time taken would be better spent on other
areas of the site, this should not be an issue
4) This is technically do-able but a pain in the arse, the reason being
is that it goes against the point of a web server which is getting data
to the client as quickly as possible, so it's not something that is made
easy for a web developer to do.
5) I say so and you pay me to know things like this. ( I probably
wouldn't say this directly, more hint at it.)
Regards
Richard
--
Artumi Systems, 58 Salmon Street, Sheffield, S11 8DD.
Tel 0114 250 7654, Web http://www.artumi.com
VAT Reg 889 0317 88
|
 |
|