How can I force an ISP to refresh a file in proxy server cache?

Hi all,
In my applet I am getting a remote file. But with some ISP's I have the problem that when I try to get that file again I get the older version which they had in their proxy servers cache.
Is it possible for me to enforce refresh on this ISP's proxy server with some code in the applet or in the web page or in any other way?
If yes, how?
I would appreciate your answers very much, because I am in an urgent and desperate situation.
Thanks and bye.

If you are using URLConnection
myURLConnection.setRequestProperty("pragma:","no-cache"Actually, the 'pragma' header is an HTP 1.0 (old) concept. The one for HTTP 1.1 is 'Cache-Control'. That said, you should always use both to support old/new browsers.
You could also use the following headers :
Expires, must-revalidate, proxy-revalidate etc...
You could also implement a getLastModified() method in your servlet, which returns the time (as a long) at which the content was last changed. The server could then intercept 'If-Modified-Since' requests.
Keep in mind that, because of several notorious browser bugs ( http://www.web-caching.com/browserbugs.html ), it can be difficult to effectively turn off caching across the board.

Similar Messages

  • I had over 200 e-mails.  I went to my webmail and deleted most of them.  However, my iPhone still shows 200 e-mails.  How can I force my iPhone to update from the e-mail server?  Or will I have to delete each e-mail from my iPhone as well?  Thanks.

    I had over 200 e-mails.  I went to my webmail and deleted most of them.  However, my iPhone still shows 200 e-mails.  How can I force my iPhone to update from the e-mail server?  Or will I have to delete each e-mail from my iPhone as well?  Thanks.

    You may have to try deleting all the music from your phone (by going to Settings>General>Usage>Music, swipping All Music and tapping Delete), then sync it all back on with iTunes in order to fix this.

  • How can I force iTunes to skip uploading some files to iCloud?

    I have a *lot* of college level courses from The Great Courses in iTunes.  I have no need of having them in iCloud.  How do I force iTunes to NOT upload these files?  I only need my music in iCloud and not these lectures.  Besides, The Great Courses has an iOS app that already lets me stream these if I choose. So there is no need for them to be uploaded into iCloud.
    Linda

    Thank you. Actually they are uploading. I had purchased the CD's.  Each lecture is divided into 6 files on the CD's.  I used "Join Together" and Quicktime and joined all of the tracks together for 1 file per lecture.  Those don't exist, as I have them, in iCloud.  So, iTunes is in fact uploading all of these files.
    The link you provided was for hiding purchases.  These were not purchased through Apple.
    So, the question remains.  Is there a way to prevent iTunes from uploading certain files into iCloud?
    Thanks,
    Linda

  • How can I force TestStand to create multiple instance of an activex server instead of share the same reference?

    Hi, All:
         I am trying to migrate a application coded by VC++ to TestStand+CVI. This application opens multiple serial com ports and send commands to test targets, and get responses from these targets. The VC++ application creates multiple thread, and every thread create an activeX server instance which is responsible for opening serial port,sending test commands ,and getting response. It works fine as every thread has itsown activeX instance, so data and commands can be handled in the right serial port successfully.
         Yet when I works on TestStand, I got problems. I choose parallel model as the process model. I create a activeX object reference with AxtiveX/COM Adapter, and store the reference in a sequence local varialbe. If there is only 1 testsocket, It is OK. But if there are multiple test sockets, and communication between the application and test targets will be directly to the last test target. I try to popup a message within a execution to indicate the value of the activeX object reference, and all of them are identical. But this is not the behavior I want.
        So, is it possible to force TestStand to create independent instances of an activeX server? How can I make it work?
    Thanks

    Thanks for your comment, Dan.
          Yet I do get problems as none of us know how to program an activeX server so that it can be forced to be a single-instance or multiple-instance.
    As I mentioned earlier, there is existing application which is written by VC++ can create multiple instances of this activeX server, all I have to do is to create multiple threads, and initiate an instance of this server to contrl multiple test targets.
         My colleague said he creates the server with VC++ ATL, and cofigure it to be dual-interface and STA. And in the VC++ application side(client side), I use smart-pointer in threads to create an instance of the server:
     IMySerialServer pIMySerialServer;
      HRESULT hr = pIMySerialServer.CreateInstance("UUTCmd.MySerialServer");
      if(FAILED(hr))
       AfxMessageBox("Fail to create instance.");
    And then I got multple instances of the activeX server. Every thread can have itsown com port, can send/receive commands indepently. I have no idea how can I make it work on TestStand. Would you show me some reference documents or sample codes?
    Thank you
    Cipher

  • How can i set a path for my deployment files in weblogic server 10.3

    Hi
    How can i set the path for my WAR ,JAR files while deploying.i am using the wls10.3 version.
    is there any scripts for this ,please provide me.
    my Application is ADF 11g application.

    By "path", I assume you mean "classpath".
    The simplest way is simply to include the jars you need inside the web application or web module's WEB-INF/lib directory, EJB module's META-INF/lib directory, or EAR lib directory.
    If that's not practical, if you use NodeManager to start your servers, you can go to the "Server Start" tab in the server definition in the WebLogic console and edit the "Classpath" field, which defaults to no value. You can specify a classpath value there. Note that if you specify a value there, it REPLACES the default classpath for the server, it doesn't add to it. If you need to just add to it (a much more likely scenario), if the value references the value "$CLASSPATH" in it, that will reference the original classpath value that the server would have had.
    So, for instance, if you wanted to include the MQ jars in the server classpath, you could set a value like this:
    /usr/java/mq/lib/mq.jar:/usr/java/mq/lib/mqstuff.jar:$CLASSPATH

  • How can i unblock youtube in my android device, when my proxy server blocked youtube

    I cant open youtube in my android devise
    Because my proxy server blocked youtube
    Please tell me what i have to do to unblock it

    Hi Walber,
    Flex uses the browsers HTTP stack to communicate and hence if
    you set proxy in IE and IE works, there should be no problem in
    Flex.
    If the problem still persists, try capturing network traffic
    with Charles / Fiddler / Wireshark to see what's going on.

  • JTextArea:  How do I force a JTextArea to refresh?

    Hi All,
    I have a JTextArea that I append data do when I'm in a while loop. The JTextArea displays the text after the loop has finished, not as data is appended to it during the while loop. How can I force the JTextArea to refresh immediately after text is appended to it?
    Thanks,
    Karl

    In case if you want to refresh the text area means to clear all the text then try the below code
    JTextArea jta;
    jta.setText(" ");

  • When I switch back to an ongoing application, from the switcher, it reverts to its own 'homepage' rather than the stay at the state/stage I left it at. How can I force applications to maintain the current state?

    iPhone 4S with the latest updates 8.1.3 (12B466) installed.
    When I switch back to an ongoing application, from the switcher, it reverts to its own 'homepage' rather than the stay at the state/stage I left it at.
    How can I force applications to maintain the current state?
    I am in the process of getting enough screenshots to demonstrate further.

    ios7 keeps refreshing apps after switching
    solcwd

  • How can I force-install iOs5/6 apps on my iPod Touch?

    Hi, I have an iPod touch version 4.3.5 (ML1). Model is MC540C.
    The App Store sometimes bars me from installing apps because the app has a minimum requirement of iOS 5 or 6. How can I force my iPod to install these apps anyway?

    No, it is more than the screen dimension.
    You have a 4G iPod, why not update?
    To update:
    iOS 4: Updating your device to iOS 5 or later
    You need iTunes 10.7 or later on the computer

  • How can I force iTunes Match to upload a "Duplicate" to the iCloud?

    I have one album where the first track was uploaded, and the other eleven tracks are all tagged as "Duplicates." These tracks were not uploaded to the iCloud. How can I force iTunes Match to upload these eleven tracks erroneously tagged as Duplicates?

    I'm adding my 2¢ because I just "discovered" iTunes Match yesterday and decided to subscribe thinking there was no downside (doh!).
    Well, firstly, there's the enormous downside of Apple's structure not being able to keep up with (what they should have known would be) enormous interest... my iTunes has been matching for >20-hours and has yet to reach half-way up my library. BTW: I thought I read the iTunes Match info fairly thoroughly prior to subscribing and did not see anything about it being for songs vrs full library.
    And secondly, and even more important to me, is that Apple's method of determining duplicate songs is not robust enough, especially for classical music and audio books (e.g., LoTR). I have >12000 "songs" in my library, and Match has determined a boatload are duplicates. They are not of course and even if Apple's duplicate-determining algorithm just looked at disc & track numbers it would "know" that. Anyway, there's a fairly good chance I will not have one complete album upload/match out of >500 albums. That's nae Scottish, in anybody's book.
    Gotta say, using Garage Band to individually alter >2000 "songs" on the off-chance that may assist Apple's duplicate algorithm to be correct is not gonna happen. If, after the matching/uploading is complete, I still have >even 100-not-duplicate-songs listed as duplicates, I'm getting my $29.95 subscription back.
    ... and C: does anybody know why Apple's Lion spell check doesn't work on Apple's discussion forums???

  • How can i force my mac book pro to use an external display

    how can i force my mac book pro to use an external display
    my screen is black

    What sort of adapter are you using?
    Clinton

  • How can I force Time Machine to make a complete backup of my Hard Drive.  I just installed a new external drive for Backup since my previous one failed.  Now when I back up, Time Machine only backs up my data folder and the Users folder.

    How can I force Time Machine to make a complete backup of my Hard Drive.  I just installed a new external drive for Backup since my previous one failed.  Now when I back up, Time Machine only backs up my data folder and the Users folder.
    When I start a backup. Time Machine says "Oldest Backup: None; Latest Backup: None", so it seems like it should do a complete backup, but it only does a partial. 

    Hi I'd like to jump in here. Your app showed me this:
    Time Machine:
              Skip System Files: NO
              Mobile backups: OFF
              Auto backup: YES
              Volumes being backed up:
                        Macintosh HD: Disk size: 749.3 GB Disk used: 453.81 GB
              Destinations:
                        Plastic Wrapper [Local] (Last used)
                        Total size: 999.86 GB
                        Total number of backups: 64
                        Oldest backup: 2013-07-24 23:25:11 +0000
                        Last backup: 2013-11-17 01:40:47 +0000
                        Size of backup disk: Too small
                                  Backup size 999.86 GB < (Disk used 453.81 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
              /sbin excluded from backup!
              /usr excluded from backup!
              /System excluded from backup!
              /bin excluded from backup!
              /private excluded from backup!
              /Library excluded from backup!
              /Applications excluded from backup!
    Aside from the size of my backup drive, which I will increase at some point, I'd really like to have time machine backing up all system folders, especially Applications. How to I reset this hidden exclusions?
    Thanks,
    Darcy

  • How can I 'force' my Macs to look for each other on the network?

    OK, I have an iMac with a wired connection to a router, and a MacBook Pro with a wireless connection to the same router. Most of the time, they can 'see' one another on the network, no problem. But, every so often, even after both have been on for a while, I will click the Network icon and the other computer will not appear as available - this happens even when the target computer can see the computer I'm using to try to access it.
    So, here's my question: how can I 'force' my Macs to look for (and find) one another on the network?
    Thanks... if you need further information, just ask... - beck

    If you are using Tiger, go to
    Finder menu -> Go -> Connect to Server
    Enter the specific IP address of the other Mac where is says +Server Address+. You can find the IP address by running System Profiler or looking at System Preferences Network pane (on the other Mac).
    Once you have mounted the volume you to access, make an alias for it and place it in the Dock or on your Desktop. The next time you want to connect to that server, use the alias.

  • How can I force mount a dvd that isn't even seen by Disk Utility? I can see it on the Mac when using my Windows 7 partition via Boot Camp, but not in Lion, which is how I would rather be running.

    How can I force mount a dvd that isn't even seen by Disk Utility? I can see it on the Mac when using my Windows 7 partition via Boot Camp, but not in Lion, which is how I would rather be running.

    Well if there is a EFI block, then running a program in OS X isn't going to do a lick of good.
    After all EFI was designed for Trusted Computing and Digital Rights Management, to act between the OS and hardware, can read drives, contact the Internet and everything.
    Windows doesn't use EFI, will have UEFI in Windows 8 though.

  • Photoshop CC (2014) claims to be up to date, although it is still running Camera Raw 8.6.0.254. How can I force an update to ACR 9?

    How can I force PS CC (2014) to update Camera Raw?

    I finally got through to Adobe Support chat, and got a direct link to the update. Problem solved.

Maybe you are looking for