Prevent client image caching

G

Guest

I'm working on a litigation web app where users will review images of case
documents. One of the requirements is that we either prevent the images from
being cached on the clients machine (in temp directory or anywhere else) or
we encrypt the images somehow. I'm guessing that encryption will not work,
but is there a way to prevent caching?

Also, is there a way to prevent printing on a current page? We're already
not showing the menu or toolbar, but is there any way to disable hotkeys
(Shift+P)?

Thanks in advance,

J. Beem
 
G

Guest

I'm working on a litigation web app where users will review images of case
documents. One of the requirements is that we either prevent the images from
being cached on the clients machine (in temp directory or anywhere else) or
we encrypt the images somehow. I'm guessing that encryption will not work,
but is there a way to prevent caching?

Also, is there a way to prevent printing on a current page? We're already
not showing the menu or toolbar, but is there any way to disable hotkeys
(Shift+P)?

Thanks in advance,

J. Beem

http://.....gif?random_num would probably help
 
G

gover

There arre HTTP Headers that can be used to prevent caching, You could also
use some css classes to hide data when a page was printed via the browsers
print function.
However,you cant stop the user from preesing the windows printscreen button
to get an image of whats on the sceen..
 
G

Guest

Unfortunately, I have found that (at least with Internet Exploder) virtually
every combination of no-cache headers and random querystrings on the image
url still result in the image going into the Temporary Internet Files folder
immediately upon the page having completed loading.

While it may disappear later after the browser is closed, there is nothing
to stop a user from choosing Tools/Internet Options /Settings /View Files to
be able to copy this image out of the folder and save it somewhere else.

Try some combinations and let us know if I am correct in this.

Peter
 
M

MasterGaurav \(www.edujini-labs.com\)

Unfortunately, I have found that (at least with Internet Exploder)
virtually
every combination of no-cache headers and random querystrings on the image
url still result in the image going into the Temporary Internet Files
folder
immediately upon the page having completed loading.

I second.
The only way out it http://someserver.com/image.jpg?{DateTime.Now.Ticks}

just to fool the browser that it's a new image...


--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------
 
G

Guest

Correct, but even in that case if you open the temporary files folder you can
see the image there along with the ?xxxxx querystring item from the url. The
idea here from the OP is "How to completely prevent" an image in a web page
from EVER getting into the cache folder.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net








- Show quoted text -

Jeff, sorry, I got it wrong the last time, and "?something" seems to
be a bad idea.

Maybe a Flash movie designed to show images could help?
 
T

Tigger

I'm working on a litigation web app where users will review images of case
documents. One of the requirements is that we either prevent the images from
being cached on the clients machine (in temp directory or anywhere else) or
we encrypt the images somehow. I'm guessing that encryption will not work,
but is there a way to prevent caching?

Also, is there a way to prevent printing on a current page? We're already
not showing the menu or toolbar, but is there any way to disable hotkeys
(Shift+P)?

Thanks in advance,

J. Beem

Is it the caching thats the problem or the fact the client can get a
copy of the image for their own use?

Tigger
 
M

MasterGaurav \(www.edujini-labs.com\)

Correct, but even in that case if you open the temporary files folder you
can
see the image there along with the ?xxxxx querystring item from the url.
The
idea here from the OP is "How to completely prevent" an image in a web
page
from EVER getting into the cache folder.
Peter

You can never prevent the browser's caching through "server".
I can always set the option for cache to "Never look on network" and always
work with cached image.

Yes... one option, as what Alexey suggests is to use Flash or ActiveX or for
that matter... any plug-in.


--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top