Hi all,

How can restrict images for not storing in browser

cache.

Or in another way how can we delete browser cache files

programitically.

I have tried header in php. Also i tried Cache-Control

of meta tags, but still images are cached and even it

update image, browser is showing old image only.

I need to generate image dynamically on key press event

of text. So based on the text entered, image is to

drawn and shown. I have successfully generated image

but browser is always showing old one. I need something

that can be managed through code.

I tried to append a random number each time image is

retrieved. But by doing so, image is cached in bulk

with random numbers.

Any suggesstions will be helpful.

Thanks in advance.

Post some code and I'll see what I can do.

Im not too sure what you are requiring, seems to me you do not want to store data on a users computer. This is impossible (might be a black hat way around) for a person to view a webpage it must be downloaded as a whole and editing this information(deleting cache) would be violating the users rights.

Im not too sure what you are requiring, seems to me you do not want to store data on a users computer. This is impossible (might be a black hat way around) for a person to view a webpage it must be downloaded as a whole and editing this information(deleting cache) would be violating the users rights.

OmniX is exactly right, in fact what happens is the HTML is just a page that has code in it linking files. The clients browser will take the text file and basicly turn it into an image that you see when visiting a website. So if the user doesn't download these files they can't make this image you intend for them to make.

Hi all,

How can restrict images for not storing in browser

cache.

Or in another way how can we delete browser cache files

programitically.

I have tried header in php. Also i tried Cache-Control

of meta tags, but still images are cached and even it

update image, browser is showing old image only.

I need to generate image dynamically on key press event

of text. So based on the text entered, image is to

drawn and shown. I have successfully generated image

but browser is always showing old one. I need something

that can be managed through code.

I tried to append a random number each time image is

retrieved. But by doing so, image is cached in bulk

with random numbers.

Any suggesstions will be helpful.

Thanks in advance.

What cache headers are you sending?

You can probably go around the cache by generating the image dynamically within the CANVAS element or a plugin.

For example with SVG or Flash.

I'm sure these are able to take binary data to generate the image, or take the image form a URL or stream/pipe.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.