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

Similar Messages

  • 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)

  • 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 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.

  • 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

  • JRE won't cache some jar files.

    I have seen this behavior several times and cannot figure it out. For some reason, the JRE will not always cache jar files. I have tried to narrow down a pattern, but cannot. The closest pattern I can see is that on occasions when a jar is not cached, the file was not signed. I have not seen an instance when a signed jar would not cache. Having said that, occassionally, unsigned jars do appear to be cached.
    This behavior has been seen with all versions from 1.4 - 1.6. In all cases, the max cache size is far great than would ever be needed and in most cases, jar cache is cleared prior to testing.
    Any hints, or is this expected behavior? If expected, is it documented anywhere?

    Hi Matthew,
    I get the same error when using the Camino browser and StuffIt v9.0.1. So, I'd guess it's a problem with the file rather than anything on our machines.

  • 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.

  • Plugin 1.3.1_02 won't cache my jars

    I have an unsigned applet application packaged as 3 jars. I'm using the 1.3.1_02 plugin, IE 5.5, Weblogic 5.1. Below is the html OBJECT tag used to launch my applet.
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
         width="100%" height="100%"
         align="baseline"
         codebase="http://myServer:myPort/j2re-1_3_1_02-win.exe#Version=1,3,1,2">
         <PARAM NAME="MAYSCRIPT" VALUE="true">
         <PARAM NAME="code" VALUE="myApplet.class">
         <PARAM NAME="codebase" VALUE="classes/">
         <PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.3.1_02">
         <PARAM NAME="cache_option" VALUE="Plugin">
         <PARAM NAME="cache_archive" VALUE="a.jar,b.jar,c.jar">
    </OBJECT>Sticky caching will not work. The jars are downloaded from the server every time the applet is run. The jars would cache correctly when I was using the 1.3.0 plugin.
    According to the information here
    http://java.sun.com/products/plugin/1.3/docs/appletcaching.html
    the jars should be downloaded only if the last modified and jar size have changed.
    I realize that I can use the cache_version attibute, but this is an unworkable solution for my case. The html is above is generated dynamically. Also, if I want to tie the jar versions to the application's release versions structure of the attribute (cache_version =X.X.X.X where X could be from 0 to F in hexadecimal) limits me to a finite number of major release version id's.
    I am not using HTTPS which will only cache using the cache_version attibute.
    Any help would be appreciated.

    Hi There,
    Did u get reply for yr question,. I've the same problem. Pls let me know if u've any solution for this.
    thanks
    jasmin

  • Multiple Calls for Cached Applet Jars

    Hi,
    We have applet which uses Viewer.jar. Even though Viewer.jar is cached on client machine JRE makes calls to server for Viewer.jar. Why it makes call to server for cached jars? Is there any way by which we can avoid server call when jar is already cached on client machine.
    Here is extract of java console:
    network: Cache entry found [url: https://viewer1.qa.asite.com/IGC/Viewer.jar, version: 0005.0000.0023.0012]
    network: Cache entry not found [url: https://viewer1.qa.asite.com/IGC/Viewer.jar?version-id=0005.0000.0023.0012, version: null]
    network: Cache entry not found [url: https://viewer1.qa.asite.com/IGC/Viewer.jar, version: null]
    network: Connecting https://viewer1.qa.asite.com/IGC/Viewer.jar?version-id=0005.0000.0023.0012 with proxy=DIRECT
    network: Connecting https://viewer1.qa.asite.com/IGC/Viewer.jar?version-id=0005.0000.0023.0012 with cookie "__utma=193285949.559965713.1252938991.1252938991.1252938991.1; __utmz=193285949.1252938991.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=186816424.512568576.1252937835.1252937835.1252937835.1; __utmz=186816424.1252937835.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); JSESSIONID=61B8442537C1901DA1DA1B38D4983715"
    network: Connecting https://viewer1.qa.asite.com/IGC/Viewer.jar with proxy=DIRECT

    Hi,
    We have applet which uses Viewer.jar. Even though Viewer.jar is cached on client machine JRE makes calls to server for Viewer.jar. Why it makes call to server for cached jars? Is there any way by which we can avoid server call when jar is already cached on client machine.
    Here is extract of java console:
    network: Cache entry found [url: https://viewer1.qa.asite.com/IGC/Viewer.jar, version: 0005.0000.0023.0012]
    network: Cache entry not found [url: https://viewer1.qa.asite.com/IGC/Viewer.jar?version-id=0005.0000.0023.0012, version: null]
    network: Cache entry not found [url: https://viewer1.qa.asite.com/IGC/Viewer.jar, version: null]
    network: Connecting https://viewer1.qa.asite.com/IGC/Viewer.jar?version-id=0005.0000.0023.0012 with proxy=DIRECT
    network: Connecting https://viewer1.qa.asite.com/IGC/Viewer.jar?version-id=0005.0000.0023.0012 with cookie "__utma=193285949.559965713.1252938991.1252938991.1252938991.1; __utmz=193285949.1252938991.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=186816424.512568576.1252937835.1252937835.1252937835.1; __utmz=186816424.1252937835.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); JSESSIONID=61B8442537C1901DA1DA1B38D4983715"
    network: Connecting https://viewer1.qa.asite.com/IGC/Viewer.jar with proxy=DIRECT

  • 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.

  • I have problem with the BPEL server caching the jar file of Instance

    Is there any way to undeploy and redeploy a process where you have changes to the underlying DA, without the BEPL server being restarted. This always works in my Local BPEL server in my Laptop. But when deploying in the hosted BPEL enviroment it becomes a big problem in getting it restarted when ever I MAKE changes.
    Is there any other way to disable the Cache of the instance and make it use the newer version uploaded. One more thing if the connection to a database is severed, then the DA will not work until the server is restarted. All the instances using the said connection is failing with either "Invalid Datatype" or "Socket Read exception". Can someone help!!
    Thanks,
    Prabhakar

    Hi,
    have you tried to kill the session of the DA in the database?

  • 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....

Maybe you are looking for

  • .Mov shows only black screen

    Hey Guys and Gals, Installed Mavericks yesterday and so far very happy. I am a freelance cinematographer/editor and prior to the upgrade I had some footage from a client that was in .MOV format, codec I can't remember but now the system doesn't play

  • Iphoto export problem any ideas???

    I cannot export photos before a certain date. I have about two years worth in my iphoto and after a certain date I can export. I don't know what is different between the photos. I tried command option while launching iphoto and none of those options

  • Approval Preview Graphic not syncing with Approval Text in SRM 4.0

    We are currently using SRM 4.0 in an extended classic setup and have the following issue. When creating a shopping cart/PO in SRM and looking at the approvals pending/processed or waiting the approval preview screen is different when choosing graphic

  • How to get exact match when working with Oracle Text?

    Hi, I'm running Oracle9i Database R2. I would like to know how do I get exact match when working with Oracle Text. DROP TABLE T_TEST_1; CREATE TABLE T_TEST_1 (text VARCHAR2(30)); INSERT INTO T_TEST_1 VALUES('Management'); INSERT INTO T_TEST_1 VALUES(

  • Error #2025: addChaild and removeChild

    hello all I have the app but I got a problem ArgumentError: Error # 2025: The supplied DisplayObject must be a child of the caller. at flash.display :: DisplayObjectContainer / removeChild () at xxxxx_fla :: MainTimeline / hitPoint () my code import