How to prevent web browser to image caching.

The simple way to prevent image caching is to append time stamp with the name on image.

Ex-<img src=’image.jpg?’ />

In the above code browser understand a new image at every call. But HTML parser understands“image.jpg” for every call.

Source: http://www.phpinterviewquestion.com/

Advertisements

About amitsonikhandwa
I am a web developer working in PHP and MYSQL with AJAX, jQuery and JavaScript. I am in web development since 2007.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s