html - Prevent local caching of images, for security -


is there reliable way stop browsers caching image locally. not (just) freshness of image, rather concern sensitive images being stored on local drive. adding random url param img url suggested in similar questions not because ensures next request not last request in cache (at least understanding). need image never saved locally or @ least not accessible outside browser session if saved.

you need send appropriate cache-control headers when serving response image request. see post information on standard ways in several programming languages.

how control web page caching, across browsers?

there alternate, , possibly more foolproof yet more complex, approach directly populate base 64 encoded images data directly img src attrbitute. far know not subject caching, there not separate http request made retrieve image. of course still need make sure page not cached, gets initial problem of serving appropriate headers primary html request.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -