Forcing the browser to display current images

Hi all
          I have a content manager tool where images are uploaded to a server.On the
          same screen the current version of the image is displayed
          When a new version of the image is uploaded and the page is requested again
          without closing the browser window), the old image displays unless the user
          clicks the refresh button or hits the F5 key.
          Is there a meta tag that will specifically expire images in the browser
          cache and force the browser to get the new version?
          I have tried various meta tags eg
          <meta http-equiv="Expires" content="0" />
          <META HTTP-EQUIV="REFRESH" CONTENT="-1">
          <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
          If the user closes the browser, opens it again and request the url then the
          new version of the image displays. It as though the cache doesnt flush or
          something until the browser is closed.
          The only other way I can think of is to add a ?param=some_random_number
          query string to each image in my html - not sure if that would work or not.
          Any help appreciated
          Thanks
          Matt
          

Hi
          I ended up adding a randomly generated query string to all of my images that
          need to be reretrieved and it worked
          eg the url for my image would be images/myimage.gif?cacheparam=12345
          I did this instead of a custom filter/servlet because only about 3% of my
          images have these strict "ignore the cache" requirements and I couldnt think
          of a url pattern that would properly isolate them without also disabling
          caching for all of my other images.
          Thanks for your replies - i never thought of being able to set response
          headers individually for images.
          "Wenjin Zhang" <[email protected]> wrote in message
          news:[email protected]...
          >
          > I believe you can do that by adding HTTP headers in response object in
          your filter.
          >
          > "Matt Krevs" <[email protected]> wrote:
          > >Thanks
          > >
          > >Could I do this with a filter instead of a servlet?
          > >
          > >what headers would i set for each image?
          > >
          > >"Wenjin Zhang" <[email protected]> wrote in message
          > >news:[email protected]...
          > >>
          > >> If you have a customized servlet to serve your images, you can add
          > >cache
          > >control
          > >> in HTTP header (not meta in HTML).
          > >>
          > >>
          > >> "Matt Krevs" <[email protected]> wrote:
          > >> >Hi all
          > >> >
          > >> >I have a content manager tool where images are uploaded to a server.On
          > >> >the
          > >> >same screen the current version of the image is displayed
          > >> >
          > >> >When a new version of the image is uploaded and the page is requested
          > >> >again
          > >> >without closing the browser window), the old image displays unless
          > >the
          > >> >user
          > >> >clicks the refresh button or hits the F5 key.
          > >> >
          > >> >Is there a meta tag that will specifically expire images in the
          browser
          > >> >cache and force the browser to get the new version?
          > >> >
          > >> >I have tried various meta tags eg
          > >> >
          > >> ><meta http-equiv="Expires" content="0" />
          > >> ><META HTTP-EQUIV="REFRESH" CONTENT="-1">
          > >> ><META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
          > >> >
          > >> >If the user closes the browser, opens it again and request the url
          > >then
          > >> >the
          > >> >new version of the image displays. It as though the cache doesnt flush
          > >> >or
          > >> >something until the browser is closed.
          > >> >
          > >> >The only other way I can think of is to add a
          ?param=some_random_number
          > >> >query string to each image in my html - not sure if that would work
          > >or
          > >> >not.
          > >> >
          > >> >Any help appreciated
          > >> >
          > >> >Thanks
          > >> >Matt
          > >> >
          > >> >
          > >> >
          > >>
          > >
          > >
          >
          

Similar Messages

  • LifeCycle Form Server :- My form is rendering as pdf in the browser  without displaying data sometim

    LifeCycle Form Server :- My form is rendering as pdf in the browser without displaying data sometimes within data fields, and at other times it will display data. The form consistently displays data when rendered in HTML.
    We display the forms in a browser either HTML or PDF format based on the user selection. But the behavior of PDF format is not consistent. Sometimes it renders properly and sometimes the form renders without data.
    Dose any one experienced this issue?
    Any help would be greatly appreciated.
    Thanks in advance,
    RK

    I have been seeing the same issue, but haven't been able to find a fix for it yet. So any info would be appreciated here too.
    Thanks

  • I bought an Ipod touch Used, I connected to my PC and I wanted to restore it, but the restoration could not be completed, since my PC does not recognize my iPod or iTunes. On the iPod screen displays an image that says I need to connect the device to iTun

    I bought an Ipod touch Used, I connected to my PC and I wanted to restore it, but the restoration could not be completed, since my PC does not recognize my iPod or iTunes. On the iPod screen displays an image thatsays I need to connect the device to iTunes.

    http://support.apple.com/kb/TS1538
    There have been some problems accessing pages on the Apple web site.  If the hyperlink gives you a "We're sorry" message, try again.

  • The bar at the top of the page wich displays ,WEB, IMAGES. VIDIO etc is now black Why

    The bar at the top of the page wich displays ,WEB, IMAGES. VIDIO ect is now with a black background which is hard to see,why would the colour have changed and can I change it back?

    I did some investigation yesterday and found that is is caused by a change made by Google.
    Google regularly does some experiments and makes changes.
    See:
    * http://googlesystem.blogspot.com/2011/06/googles-experimental-black-navigation.html
    * http://googleblog.blogspot.com/2011/06/evolving-google-design-and-experience.html
    * http://googleblog.blogspot.com/2010/05/spring-metamorphosis-googles-new-look.html
    * http://forums.mozillazine.org/viewtopic.php?f=7&t=2239295
    * http://userscripts.org/scripts/review/105744 Source for "Google Bar Classic"

  • I am getting a Remote Panel displayed on the remote display outside of browser. How tdo I force the panel to display in browser.

    I have several machines running LabVIEW 8.2.1 my application uses remote panels embedded in a browser to display the front panel of the running VI. One machine is responding with the brower window coming up, but when the VI is launched it is displayed on the remote machine as a stand-alone remote front panel. About half of the machines have had InternetToolkit intalled, at least one machine that is working does not. the machine in question does not. Could this be part of the problem.
    The enclosing web pages are generated by a .Net web server running on port 80, LabVIEW web server on port 81.
    Example object block from the generated page. Other than machine and vi information I do not se any differences between the applications.
    <!-- LVRemotePanel -->
    <OBJECT ID="LabVIEWControl" BORDER=1
        CLASSID="CLSID:A40B0AD4-B50E-4E58-8A1D-8544233807A​E"
        CODEBASE="ftp://ftp.ni.com/support/labview/runtime/windows/8​.2/LVRunTimeEng.exe"
        WIDTH="722" HEIGHT="740" >
        <PARAM name="server" value="http://hostname.domain.class:81" />
     <PARAM name="LVFPPVINAME" value="Force.vi">
     <param name="REQCTRL" value="true">
     <EMBED src="http://hostname.domain.class:81/.LV_FrontPanelProt​ocol.rpvi82" LVFPPVINAME="Force_13.vi"
     REQCTRL="true"  WIDTH=722 HEIGHT=740 TYPE="application/x-labviewrpvi82"
     PLUGINSPAGE="http://digital.ni.com/express.nsf/express?openagen​t&code=ex3e33&">
      </EMBED>
    </OBJECT>
    Any thoughts or help greatly appreciated.
    Thanks,
    Phil

    Kevin,
    Thanks for the reply.
    Attached is a screen shot of the problem. This is from my home machine which does not have a LabVIEW environment installed, but does have runtime plug-ins for 7.1 & 8.2.1. I also get similar results on my development machines.
    The serving machines are all on campus.
    The remote front panel on the left is what I expected to see embedded in the 'loading ....' field on the Web page on the right.
    The application [ The iLab Project ] is complex and uses a collection of .Net Web Services to provide access to remote labs using the Internet.
    Access to an iLab Lab Server running on port 80 is authorized by a Service Broker, normally running on another machine. The Lab Server, LabVIEW environment and measurement hardware are normally on the same machine, iLab Lab Server using port 80, LabVIEW WebServer using port 81.
    Once the user is authorized and redirected to the Lab Server the Lab Server ensures that LabVIEW is running and the specified VI is loaded, a web page is generated on port 80 that includes the OBJECT block to display the front panel from port 81. Example OBJECT block included in my original post.
    I have used this code on three other 8.2.1 Lab Servers with different VI's and the Front panel is displayed in the web page as expected.
    Variations of the code have been used since LabVIEW 7.0. Prior to version 8.2 the InternetToolkit, GWeb Server and a custom CGI VI were used to generate the contents of an in-line frame to display the Front Panel. Since 8.2 I generate the Object block directly as part of the aspx processing. Is it possible I need the InternetTookit installed even if it is not used, I'm pretty sure one of my working systems has never had the toolkit installed, the machine in question has not.
    I hope this makes my problem clearer, any help, pointers or further questions will be appreciated.
    Phil
    Attachments:
    remotePanelBehavior1.jpg ‏216 KB

  • Retrieving a image on The browser for display

    I have a Tomcat-Server running on a Win NT platform . It houses Oracle 8. We are making a JSP application which will take an image file from the Hard disk and put it into the ORacle database .
    We are able to put the image in the database and also retrieve it from the database . But for retrieving we have to download it into a temporary file and then view it over the browser .
    I was just thinking if it is possible for JSP to get the image from the database and show it in the browser without actually storing it in a temporary location .
    Please help Me
    DP

    One possiblity:
    <%@ page contentType="text/html;charset=WINDOWS-1252"%>
    <HTML>
    <HEAD>
    <TITLE>TEST</TITLE>
    </HEAD>
    <BODY>
    TEST TEST
    <BR>
    <IMG SRC="http://localhost/forum/forum.ShowBlob?id=34" alt="plaatje">
    <BR>
    PLAATJE
    </BODY>
    </HTML>
    ShowBlob is a class which retrieves the image out of DB.
    Regards
    Martin

  • Avoid the browser cache display the previous version of my flash website

    I frequently update my website. But customers do not see immediately the changes as the cache displays the previous version.
    How do I avoid this? Any advice is highly appreciated.

    Hi, this is a bit of a wrong forum since your problem doesn't pertain to AS per se, but for what it's worth I'm gonna tell you how i deal with the browser caching and it helped me (both SWF and JavaScript caches). I always use the Dreamweaver site and after I'm done compiling the SWF file I suply "Upload" the file to the testing/remote server. Hope that helps.

  • Data selected is not displaying but when refresh the browser it displays

    The system brings back a record after the record is selected from the database. The data is in memory but is not display. When the browser is refreshed, the data displays.

    Sorry but this is an internal system. The problem is baffling because there seems to be no consistency in its patterns. Sometimes when we pull up an account, it would show the info. Other times the same information does not come up. We thought it could be missing records, i.e. orphaned rows, but this isn't the case. It is quite odd and especially hard to bug because we can't consistently replicate it.

  • I am in a hotel and cannot force the browser to ask for a password to sign in

    I am trying to connect my browser to the Internet,; Firefox, chrome, safari.   I am in a hotel.  The system connects, Skype works and connects, but my browsers will not connect and likely will not connect until a password is requested and submitted - which the system will not do.  I have deleted the connection, rebooted, cleared cashe and history, etc......  Changed the system to auto, deleted DNS,etc.... Done all of this several times.
    I need to get the system to ask for the sign in and password without connection so that I can sign in.  I expect this will solve the browser connection issues.
    any ideas?
    BTW my iPad connects easily and so does another MacBook Pro.   We are using Lion and ISO 5.0
    Thx

    Ask someone at the hotel (manager) what the url address is for the sign in page. Then type it into your browser (anyone) and it should bring it up. Then bookmark the sign in page for future use.

  • How to force the browser to uninstall the older version of plugin?

    Hi
    The application I am working installs the plugin from its server rather than installing from sun's site when the user opens the page first time. But I want to have all the users use the same version of plugin(because the application loads some libraries as plugin extension).
    If any of the user has older version of plugin installed already I want the browser to uninstall the older version and install the newer version from the web server automatically.
    Have any one come across this situation?
    Thanks.

    Isn't that a potentially dangerous thing to allow an applet to do? If you are developing for a company intranet, have your admin do it on all company computers. But if this is a commercial application, I am sure most users won't want an applet uninstalling programs from their computer.
    Bart

  • FileReference: Want to force the browser to open a File Instead of Downloading it

    Hello
       I am using the FileReferece class for downloading a file. The download() method prompts for saving the file on the file system.
    Instead of downloading a file, I want the browser to open it based on  its extension. So if a file is test.xyz, then it should be able to open it using an installed application which understands to handle these files.
    Any ideas on how this can be done.
    Any help is appreciated
    thanks

    Because you made a layer, and JPEG doesn't support layers.
    Turn off the "preserve cropped pixels" option in the crop options, or just flatten your document so you can save it as JPEG.

  • How can I get my browser to display thumbnails, images, and the background?

    I've had this problem for months now. I've tried uninstalling and reinstalling, resetting, everything I could think of. However, the problem remains. The background is never there, thumbnails are never there, images are invisible. It's basically just shapes and text.
    Is there any way I can post a screenshot?

    I have posted a screenshot of what I mean.

  • How can I upgrade to Firefox 3.6.6 if I cannot open the browser of my current 3.5.10 version?

    I can't open my Firexox browser and as I understand, upgrading to a new ff version will fix this problem and keep my settings and bookmarks as well. But how do I upgrade if I can't open my browser?
    Alternately I could create a new profile of my current FF version and transfer my settings, but I have to close my current FF session which I can't do without accessing my browser which in turn won't open.
    Either way I'm in a catch-22. Is there a solution for either issue?
    == This happened ==
    Every time Firefox opened
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.5; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

    First, try to determine the reason that Firefox 3.5.10 is hanging or not starting. Since you did not specify, you will need to read some of the following to determine hanging or starting; hanging usually gives you an error message when you try to start Firefox. See below. If you install Firefox 3.6.6 over the top of 3.5.10 and the cause of the hanging or not starting is one or more extensions or plugins or some other cause, Firefox 3.6.6 may experience the same problem.
    <u>'''Kill Application'''</u>
    In Task Manager, does firefox.exe show in the <u>'''Processes'''</u> tab?
    See: [http://kb.mozillazine.org/Kill_application Kill Application]
    '''<u>Causes and solutions for Firefox hanging at exit:</u>'''
    [[Firefox hangs]]
    [http://kb.mozillazine.org/Firefox_hangs#Hang_at_exit Firefox hangs at exit]
    [[Firefox is already running but is not responding]]
    <u>'''Safe Mode'''</u>
    You may need to use '''[[Safe Mode]]''' (click on "Safe Mode" and read) to localize the problem. Firefox Safe Mode is a diagnostic mode that disables Extensions and some other features of Firefox. If you are using a theme, switch to the DEFAULT theme: Tools > Add-ons > Themes <u>'''before'''</u> starting Safe Mode. When entering Safe Mode, do not check any items on the entry window, just click "Continue in Safe Mode". Test to see if the problem you are experiencing is corrected.
    See:
    '''[[Troubleshooting extensions and themes]]'''
    '''[[Troubleshooting plugins]]'''
    '''[[Basic Troubleshooting]]'''
    If the problem does not occur in Safe-mode then disable all of your Extensions and Plug-ins and then try to find which is causing it by enabling <u>'''one at a time'''</u> until the problem reappears. <u>'''You MUST close and restart Firefox after EACH change'''</u> via File > Restart Firefox (on Mac: Firefox > Quit). You can use "Disable all add-ons" on the Safe mode start window.

  • Why would the browser preview display look different than what I am seeing in the design view? Pls help!

    When working with accordion panels, when I first insert the widget it looks fine, then I begin customizing the content and then the Preview display does not look the same as the Design display. For instance, in the design display the panel aligns with the adjacent image, but in Preview, it appears offset by one or two pixels.

    Hi,
    Please take a look at this post with similar discussion : Re: What I see in Design mode is not the same in Preview mode. ?
    Regards,
    Aish

  • Does the Webkit engine make use of the browser cache when downloading images?

    I am creating an application that downloads a lot of images. Its an HTML Javascript based AIR application. I can't seem to find any documentation that relates to how cacheing is handled. Is there a cache for the webkit browser?

    Can you copy this to the Feature Request forum so we can vote on it please?  http://feedback.photoshop.com/photoshop_family  And then post the link here so we can find it.  It'll get my vote.
    There are a couple of others you might like to vote on too, such as using the embedded preview for editing down.  http://feedback.photoshop.com/photoshop_family/topics/lightroom_capability_to_display_embe dded_preview
    In terms of workarounds for now, if you haven't tried the 4.2RC yet, you might find the module switching a bit faster.  And for better use of your exports processing power, try splitting your export into 3 or 4 and running them concurrently (i.e. set the first going, and immediately set the second going, etc.) as that'll make better use of the extra cores if your hard drives are able to keep up with them.

Maybe you are looking for

  • How to change line item numbers

    HI when we are creating sales order, if we enter material number, line item number will be autmaticallly assigned(for eg 10,20,30 ....). if i want to change that number what i have to do(eg: to 1, 4, 5, .....). in standard SAP, the field is grayed ou

  • Runtime value mapping

    hey , The requirement is like  a record is being accessed from the database through a JDBC adapter into XI.In the record there are different fields concatenated as a string and these fields are to be mapped to the target side i.e Idoc which can be do

  • PSE10 has stopped working - except it hasn't

    I've got something strange going on. About a week ago, I started having an error message intermittantly when I open an image in PSE 10. "Adobe Photoshop Elements 10 has stopped working - A problem caused the program to stop working correctly. Please

  • Mid 2010 Mac pro to yosemite

    Hi, I'M a Mac Pro user form china. Yesterday, I upgrade my mac pro to yosemite, I found the display  color abnormal. when the color between #FFFFFF and # F9F9F9, display color looks absolutely all-white Here is my monitor and graphics card Display: A

  • PTO Carryover

    Dears I need to set up the expiry date for the Carried Over Days as following: 2012 Days should Carried over to 2013, 2012 Days should not Carried over to 2014. 2013 Days should Carried over to 2014, 2013 Days should not Carried over to 2015. PTO Car