Preventing cache in IE

Hi,
I am trying to find a solution to prevent IE from caching the .PDF files. I tried diff ways by using meta tags n the stuff like that but nothing seems to be working for me. Please let me know if there is a way to prevent it from saving in the temp internet files in IE. I am working on an application which fetches some pdf files from the server and it shudn't be saved in the clients system cuz of security reasons.those files are very sensitive, so i am trying to find a way to just display it n delete the files in client machine the moment he logs out.ur help will be appreciated. thanks in advance
Krishna

You kind of have a problem.
I don't have a guaranteed solution for you, but I think once you send the PDF file to the client, the file is well, sent and you have no control over it.
Internet Explorer treats PDF the same as a Microsoft Word document, that is, it recognizes that there's a specific application required to open it, and passes the PDF file in its entirely to the application. For example, if the file is classified.pdf, the browser essentially goes to the shell and calles "c:\adobe\reader\reader.exe classified.pdf".
Similarly, if you tried a different file format and Internet Explorer is able to display that file natively, the client can view it, and to some extent, save it, or cut and paste the contents of it.
You can use JavaScript to block some actions, but in that situation, you have to block every action you can think of as opposed to writing one generic rule and expecting IE to respect it.
There are solutions, but they do involve software that circumvents IE. It is theoretically possible to write an Applet that will do the trick, but you'd need to install the right security managers on each client's desktop. Or a stand alone desktop application. Or a secure version of Acrobat. Or... And so on.
There's no easy way to allow someone to view a document, but not make a copy of it in some way. The next version of Microsoft Office is supposed to alleviate this somewhat, but you need special server software to do it.

Similar Messages

  • Preventing caching of pages

    Hi,
    I'm having a problem preventing my jsp pages from caching.
    On my jsp page I have an ordimage object in a table, the source of which is the url of a servlet which serves up an image. If I navigate to a new page and on this page change the image of a record in the table, then return the initial page the image has not been updated until I press f5 to refresh the page.
    I've added the following meta tag to the page header:
    <meta http-equiv="PRAGMA" content="NO-CACHE"/>
    ... but still get the same problem.
    Any thoughts would be greatly appreciated.
    Thanks,
    Dave

    Hi, thanks for getting back to me.
    I've tried setting the header tags as follows ...
    <afh:head title="View Product Images">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Cache-Control" content="must-revalidate" />
    <meta http-equiv="Cache-Control" content="must-revalidate" />
    <meta http-equiv="Expires" content="Mon, 8 Aug 2006 10:00:00 GMT" />
    </afh:head>
    ... but this still doesn't seem to be preventing caching.
    Is the above okay or do I need to set them by doing response.addHeader (or response.setHeader).
    I seemed to be unable to add code of the form:
    <%
    response.setHeader(“Pragma”, “no-cache”);
    response.setHeader(“Cache-Control”, “no-cache”);
    %>
    it gave a compilation error, I assume this is because I am using a jsp document rather than a jsp page? I am very new to jsp's and up until now have avoided writing any additional jsp code, relying entirely on that generated by dragging jsf components onto the jspx document so any help would be greatly appreciated.
    Thanks,
    Dave

  • Prevent caching of JARs

    Dear Friends,
    somtime I actualize my JAR-Files.
    And I don't want that the user has to delete his java-Cache, etc. - That's not acceptable for that group of users.
    How can I prevent caching of my JAR-File?
    The JAR is only 70 kb big and wouldn't disturb.
    Well, actually I use a meta pragma nocache - but does that really help?
    Is there a secure way to prevent the caching to the harddrive (after a browser-session) ?
    Thank you!
    With best regards
    MfG
    Inno

    Dear Friends,
    somtime I actualize my JAR-Files.What is that trying to say ?
    Does your jar have feelings and dreams - is it trying to better itself ? (Sorry I couldn't help, just did a psych test ;-P )
    In all seriousness it would help if you explain what type of program this is, what you mean by caching jars, and why it is an issue.
    And I don't want that the user has to delete his
    java-Cache, etc. - That's not acceptable for that
    group of users.
    How can I prevent caching of my JAR-File?
    The JAR is only 70 kb big and wouldn't disturb.
    Well, actually I use a meta pragma nocache - but does
    that really help?
    Is there a secure way to prevent the caching to the
    harddrive (after a browser-session) ?
    Thank you!
    With best regards
    MfG
    Inno

  • Prevent cache of local xml?

    Anyone know a way to prevent caching of local xml files? I am testing an app, and keep making changes to my xml - which don't show in Flash until I close and start over - a real pain. I can prevent caching when on the server, by setting the request headers, but this doesn't work locally.

    sorry, just me being daft this morning.

  • WLS 5.1 and prevent caching on cache server

    Hi,
    Is there any method to prevent caching for *.jar files or any other
    static resources on client side cache server ?
    It seems to be possible by making filter programs that insert
    statement <meta http-equiv="Pragma" content="no-cache">
    into http response header if using WLS 7.1
    but we are using WLS5.1 SP13.

    I'm running native io. How would I use green threads with jdk1.3?
    I didn't think I could.
    thanks,
    lisa
    Chris Shipman <[email protected]> wrote:
    are you runing native io, or running green threads? try
    green threads.
    Lisa Klag wrote:
    I'm having problems getting WLS to run under JDK 1.3.I keep getting
    the following exception:
    Tue Feb 27 15:55:00 GMT+00:00 2001:<A> <SSLListenThread>ListenThread.run()
    failed:
    java.lang.UnsatisfiedLinkError: /opt/weblogic/5.10/lib/linux/libweblogicunix1.so:
    /opt/weblogic/5.10/lib/linux/libweblogicunix1.so: undefinedsymbol:
    makeCString
    at java.lang.ClassLoader$NativeLibrary.load(NativeMethod)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
    at java.lang.Runtime.loadLibrary0(Runtime.java:749)
    at java.lang.System.loadLibrary(System.java:820)
    at weblogic.platform.Unix.<init>(Unix.java:14)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at weblogic.platform.OperatingSystem.getOS(OperatingSystem.java:77)
    at weblogic.t3.srvr.T3Srvr$1.run(T3Srvr.java:1160)
    at weblogic.t3.srvr.Callback.done(Callback.java:37)
    at weblogic.t3.srvr.SSLListenThread.newServerSocket(SSLListenThread.java:474)
    at weblogic.t3.srvr.ListenThread.run(ListenThread.java:245)

  • Urgent Help - Preventing Cache in Flex 3

    Hi all,
    Am new to this forum and i have a query which needs to be fixed urgently. Actually Flex 1.5 supports <cache> configuration variable in flex-config.xml which can be used to prevent client-side caching. But I suppose Flex 3 doesn't support the <cache> configuration variable, as am getting compilation error as 'unknown configuration variable compiler.cache' . Could any one please help me out with this? And also please suggest any ideas for preventing client-side caching. Also is there any other relative terms to <cache> configuration variable in Flex 3?
    I had referred the below url regarding the <cache> variable in Flex 1.5 , http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?co ntext=LiveDocs_Book_Parts&file=performance_118_13.html
    Thanks in Advance.

    Thanks a lot for the response.
    Actually i heard that using <cache> seems to be easy, where in  we could specify even the content-size to get cached (if we require) and also it just requires us to add something like <cache-mxml>false</cache-mxml> which will prevent the caching.
    And i have already tried appending the random number to the url. In the link provided by you, what does the swfObject refer to. I mean i couldn't find any reference to the object.
    Am trying like this,
    In index.template.html
    AC_FL_RunContent(
    "src", "${swf}?url="+Math.random(),"width", "${width}","height", "${height}","align", "middle",.........)
    Please guide me thru'.
    Thanks again

  • Preventing cache in all browsers.

    Hi all,
    To prevent browser cache I have added the following code
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="max-age" content="0">
    in one of my jsp(sample1.jsp). This JSP is included in all the other JSPs.(sample2.jsp,sample3.jsp)
    The sample2.jsp have a link to sample3.jsp. The sample2.jsp is reloaded everytime I click the tree option.This tree node points to sample2.jsp.
    The sample3.jsp is not loaded eveytime I click the link.(sample3.jsp?name=David- the value link in sample2.jsp)
    Can anybody suggest me to solve this?

    Here is one set of magic spells I picked up somewhere:
            response.addDateHeader("Expires", 791589600000L); // Wed Feb 01 00:00:00 EET 1995
            response.addHeader("Cache-Control", "no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
            response.addHeader("Pragma", "no-cache");Those should cover reasonable browsers, as well as most versions of Internyet Explorer. I don't know if those work with <meta http-equiv=...>, you could try.

  • SWFLoader caching.. how can I prevent caching of content?

    Hi,
    I am trying to prevent my SWFLoader from caching the SWF file it is loading. I have tried:
    SWFLoader.cachePolicy = "off" and no luck
    SWFLoader.unloadAndStop = no luck
    SWFLoader.load(null) = no luck
    SWFLoader.source = URL + "?cache=" + new Date().getTime();   = no luck
    I am using Flex 3.5 with FlashPlayer 10
    I think I am out of ideas at this point. Any help would be greatly appreciated.
    Thanks.

    private function menuHandler(event:MenuEvent):void {
         resourceSWFLoader.source = event.item.url;
    very straight forward. It loads the first time but when the value of source changes it keeps loading the same url. I have stepped through the code and the value of url is correct, but the SWFLoader is still loading old value.
    Thanks.

  • Prevent caching of loaded images...

    How do I prevent Flash from caching loaded images?
    In my app a user make a change to an image and saves it back to the server as the same name. Flash then reloads the section and the new image should be reflected. However, it is not. The image looks fine on the server and is updated on the server...

    Perfect, thanks. I just created a date and used the get time method and a
    dded it to the string/link of the image. .....png?12345678787
    Works like a charm!

  • Swf streaming or preventing caching

    Folks
    I have swf files generated from Captivate - I want to stream
    these to prevent browser caching and conceal original file location
    Can anyone point me to sample files or notes on how to do
    this using Flash media server?
    I have managed to glean that it might be posible - swf file
    on web site connects to asc file on Flash media server which then
    gets the actual swf from location on web server and serves it via
    Flash media server to the client - but I need to see an example
    Looking for either free or fee source
    Regards
    Steven

    FMS does not serve .swf files... only flv and mp3. If you
    want to conceal the server path to the .swf, I suggest you use an
    application server (like ASP or PHP) to act as a proxy between the
    user and the .swf
    For the caching issue, you can give the .swf nocache headers
    (again, you'd need an application server for that), but honestly,
    there is no foolproof way of protecting .swf content or preventing
    people from downloading it for themselves. The best you can do is
    create a lot of hoops for people to jump through in order to get
    there.

  • How to prevent caching?

    the browser caches the information and so i have to do a refresh every once in a while to update the dynamically changing information.

    hello
    it kinda doesn't work
    you see, i have links sorted according to the number of hits.
    This is how it looks like for example
    Link1
    Link2
    Link3
    Link4
    now if lets say Link2 has 10 hits and Link3 has 9.
    If i click Link3, then the hits become 10 and if i click it again, it becomes 11.
    but it still looks like above when its supposed to be
    Link1
    Link3
    Link2
    Link4
    it doesn't show the right order until i refresh the page.
    and the thing is, if i don't refresh the page, then when i click Link3, it shows the url of link2....

  • How to prevent caching of URL?

    Hello,
    I have an application developed using Flex SDK 3.2 that calls a java servlet using navigateToURL. The servlet returns a generated PDF file, but after the first call the response is getting cached. I'm not sure if this a problem with Flex, Java or Tomcat. I have tried setting response parameters in the servlet (seHeader("Pragma","no-cache")) etc and tried a similar approach in the client - new URLRequestHeader("pragma", "no-cache");.
    Anyway, no matter what I do I can't stop the caching and I;m hoping someone can help.
    Thanks.
    JJ

    You can append the random number to the url something like this
    var str:string = "http://someurl.com?rndm="+Math.random()*100

  • Adobe AIR - How to prevent caching?

    Hello,
    We use Adobe AIR as a one-site-browser for our users.
    which means that all of the content and data reside in our server and all they have, installed on their PC, is an iframe.
    From time to time we encounter issues with users who can't get our application working, or get an older version of our pages.
    What we saw after investigation is that the pages are being cached and stored in the Temporary Internet Files folder (where IE keeps its cache).
    When the user try to clear the Browsing History from inside IE it does not clear our pages from the cache, only manual delete works.
    We tried to add the following meta to our pages with no success:
    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
    <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
    The manual deletion is not a solution, is there a way to make Adobe AIR not to save our pages (.html and .js files) in the cache?
    Please Advice,
    Uri

    Hello Jeff,
    Thank you for your quick respond.
    I'm not sure how can I implement what you've suggested.
    As I mentioned on my original post, I use Adobe AIR as a "gateway" to a special area in our website.
    Which means basically that all that there is in the AIR application is an iframe.
    I don't know how can I implement the cacheResponse and useCache properties if all I have is an iframe.
    Please help,
    Uri

  • Prevent caching of Novell password in Windows

    Hi,
    Is there a way of allowing DLU to function without caching a copy of the
    Novell password in the Windows workstation? I know I can make accounts
    volatile, but the local password still exists in an extractable form while
    users are logged in.
    Cheers,
    Devon

    >>> On 25/07/2007 at 6:39, Marcus Breiden<[email protected]> wrote:
    > On Mon, 23 Jul 2007 01:47:25 GMT, Devon Heaphy wrote:
    >
    >> Is there a way of allowing DLU to function without caching a copy of the
    >> Novell password in the Windows workstation? I know I can make accounts
    >> volatile, but the local password still exists in an extractable form
    > while
    >> users are logged in.
    >
    > ZDM7 has a feature which will nici encrypt the pw before storing it into
    > the ms datastore, otherwise like Craig said
    Thanks, much obliged to both of you. I'll look at ZDM7 for this reason - do
    you recall what the name of the feature is for reference, or where it is
    configured?
    Thanks,
    Devon

  • How to prevent caching of Http Authentication

    Hello all,
    I'm having trouble with a custom wrapper for the URL object that I wrote which is to be run from a multi-threaded program. Basically what I have is an application server that interacts w/ native code through message queueing. As the application server gets a request from the queue it starts a thread that invokes my URL wrapper. My URL wrapper has code to set the authentication (userid/pwd) based on info given from the app server which is read from the queue. It all works fine until the credentials change (a new user/pwd). The credentials from the 1st request are used. I'm betting that even if I use my wrapper object single threaded it won't work because it doesn't seem to allow the credentials to change. The only way I know of setting the credentials is through the default authenticator and it doesn't seem like this object is subject to change.
    The following is a subset of my custom URL wrapper object:
    public class HttpRequestObject
         private URL urlObj = null;
         private StringBuffer urlString = new StringBuffer();
         private InputStream input = null;
         private URLConnection urlCon = null;
         public HttpRequestObject(String url)
              urlString.append(url.trim());
         private class HTTPAuthenticator extends java.net.Authenticator
              private String userid;
              private String password;
              public HTTPAuthenticator(String name, String pwd)
                   userid = name;
                   password = pwd;
              protected java.net.PasswordAuthentication getPasswordAuthentication()
                   return new java.net.PasswordAuthentication(userid,password.toCharArray());
         public boolean openConnection(String name, String pwd)
              java.net.Authenticator.setDefault(new HTTPAuthenticator(name,pwd));
              return this.openConnection();
         public boolean openConnection()
              try
                   urlObj = new URL(urlString.toString());
                   urlCon = urlObj.openConnection();
                   input = urlCon.getInputStream();
                   return true;
              catch(Exception e)
                   System.out.println(e.getMessage());
                   e.printStackTrace();
                   return false;
              finally
                   java.net.Authenticator.setDefault(new HTTPAuthenticator(" "," "));
    }I'm not comfortable with this design at all because it feels too disconnected. There appears to be too big a possibility of credentials being shared between threads where each thread should maintain its own set of credentials. Please help.
    Cliff

    Hallo,
    you have to ask for new username and password in your getPasswordAuthentication() or you have to set your new username and password in your getPasswordAuthentication. You don't have to use a new Authenticator object in order to authenticate a different user. That won't work.
    Take a look at this site, there you will see, how to create your own Authenticator: http://java.sun.com/features/2002/11/hilevel_network.html
    Hope this helps,
    Hobster

Maybe you are looking for