问题描述:

On Safari, i would like to load an image in JavaScript like that:

var img = new Image();

var src = ....

But i don't want to put this image in the browser cache.

Any idea ?

FOR SAFARI ONLY.

网友答案:

Check for the User-agent header on server side to see if this request is coming from Safari, then set Cache-Control: no-cache for the response header.

相关阅读:
Top