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

Similar Messages

  • How do I disable the reload on the back button of Firefox and have it display the cached/prior page version?

    Every time I click the "back" button, Firefox reloads the previous page I was on. How do I disable the reload and have Firefox display the cached/prior page version? The whole point of going "back" is to see what we were just looking at.. I don't want a refreshed version of it. Any help would be greatly appreciated! I am running version 3.6.12.

    No problem. It's not a request that's been seen much if at all to be honest. I rely on them myself.
    You can always feel free to provide feedback to Apple though.
    http://www.apple.com/feedback/

  • API for clearing cache of page items

    Is there an API for clearing the cache of page items? I see there is a procedure called CLEAR_PAGE_CACHE in APEX_UTIL package to clear the cache of all the items on a page, but wanted the equivalent for an item. Maybe I'm making this harder than needed. No idea.
    I realize there is the option of creating a page process called "Clear Cache for Items (ITEM,ITEM,ITEM)" on a page, but I am trying to do this in an application-level process.
    Shane.

    FYI... I found that using [ apex_util.set_session_state ( 'item name', '' ); ] worked for me.

  • Minor error in docs in Chapter "Disable Cache and Cache" (PDF page 76)

    Hi Data Modeler-Team,
    The explanation to option "Disable Cache and Cache" (PDF page 76) is wrong. In the 2nd sentence there is a "not" missing.
    http://docs.oracle.com/cd/E18464_01/doc.30/e15802.pdf
    Thanks,
    Blama
    (WinXP, Version 3.0.0.665)

    Hi Blama,
    Thanks for reporting this error, which has been fixed in the documentation for Data Modeler version 3.1.
    An Early Adopter release of version 3.1 is now available from http://www.oracle.com/technetwork/developer-tools/datamodeler/sqldevdm31ea-download-515132.html
    David

  • Safari Will Not Show Any Cached Web Pages From Any Website.

    Basically my problem is exactly as stated in the heading. Any web page I try to view a cached snapshot of returns: "Your search did not match any documents." Up until a week or so ago, I could cache any web page, unless it truly was to old to display a cached snapshot. It would never highlight the key words typed in the search bar when the cached option was selected, but it always showed the page. Now it will not cache any page.
    The links are not broken, because I can search every page from my desktop computer with no problems. It's only on my iPhone. I could try to view 5,000 cached web pages, and every one of them returns the same message: "Your search did not.....". I've cleared my history, cache, cookies, as well as log off, and power down the phone, and turn it back on. Nothing fixes the issue. I have the latest update, and have no other problems with my phone at all. Has anyone else had this problem? Any solutions? This is very frustrating. A google search turned up nothing. This has to have happened to more people than just me. Hopefully I don't have to use the cache feature to find the answer:)

    I guess I'll join another forum, were there's people smart enough to help.

  • How to cache jsf page

    how to cache jsf page with submitted data .

    Where do you want to cache it? And with which purposes?

  • Opera browser caches .jsp pages

    Opera caches .jsp pages.
    This is serious and very annoying because it means that even if I click on the link that leads to the .jsp page I don't see a page with the current situation, but an older one.
    I know that you just use pragma, no-cache etc. in the page to stop caching, but if you use that solution, it also means that you can't use the back button because you won't find the page anymore.
    What I want to do is to say, if the browser is Opera, don't take the cached page, make me a new one.
    Anyone know how to force it not to take a cached page?
    Any help appreciated.

    Are you sure it is Opera, and not a Proxy? We had a problem that looked like the browser but was actually the proxy (because the user that reported it was the only person behind the proxy). At any rate, we handled proxy caching AND browser caching using fake URLS. E.G., When we had a page like http://site/page.jsp that could not ever be cached, we added a bogus parameter that was guaranteed to be unique: http://site/page.jsp?bogusParam=1AFFSDD2. That way the URL was never the same twice and even if the browser or proxy cached it wouldn't matter. Another option if you are using a servlet is to use the path:
    http://site/myservlets/servlet
    becomes:
    http://site/myservlets/1AFFSDD2/servlet
    and you just map that servlet to myservlets/*.
    More hassle, but at least it is workable.

  • Open cached web page?

    How can I open cached web pages?
    I know these are cryptically stored somewhere under Library/Caches/Safari, but is there a way to actually open these as web pages?

    Try using:
    tell application "Finder"
    set theURL to "yourURL"
    repeat with this_file in (get every file of entire contents of folder "Library:Caches:Safari:" of home)
    try
    set the_string to (read (this_file as alias) from 1 to 1000)
    on error
    set the_string to ""
    end try
    if the_string contains theURL then
    reveal this_file
    return --script stops right here if line reached
    end if
    end repeat
    display dialog "No cache file exists for that address." buttons "OK" default button "OK"
    end tell
    (19094)

  • 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

  • Caching asp pages

    hello everybody!
    we are running the iplanet proxy 3.6 in a reverse architecture (solaris) and
    need to cache .asp pages (i know, its microsoft...). the server caches
    everything (including
    ..html, .htm,.css, .js,..gif) except the asp extension. if we make a snoop on
    the proxys interface and look at the http header coming from the content
    server everything looks fine (cache control:"public", expiration date:
    somewhere in the future). so i guess, that the problem is in the
    configuration of the proxy. (we also tried ressources like caching only
    <http://www.contentserver.com/.*\.asp>*, but this doesnt work either...)
    can anybody help us?
    thank you in advance
    thierry perroud
    [email protected]
    <mailto:[email protected]>

    .... problem solved... the IIS does not send an Last-Modified Header on asp
    pages. we simply had to generate this header using <%Response.AddHeader
    "Last-modified","Mon, 01 Sep 1997 01:03:33 GMT"%> in the asp pages
    hope it helps other people...
    thierry perroud

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

  • How to prevent duplicate web pages from loading

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/930219]]</blockquote>
    how to prevent duplicate web pages from loading

    <s>Hi berternie, can you describe this in more detail?
    Are you saying the identical page loads in two different tabs? When does that happen -- when you click a link? or when you use a bookmark?
    Or do you have multiple tabs open every time you see your home page (i.e., when you start up, open a new window, or click the home icon)?</s>
    I see, you have more info in this thread: https://support.mozilla.org/en-US/questions/930219

  • Preventing an extra page

    Please see attached:
    How do I prevent a third page from displaying once the expanded text fields go to page 2?
    I have tried the restrict a page set occurence on the "master page" and and I still get the third page - on "Page 1", once I have it set to min count: 1 and max 1 count 1 the third page is not showing up but none of the "untitled content area" is appearing on page 2.
    Thanks for the assistance.
    Tammi

    Two things .....your Page subform is too wide to fit into the content area (I modified it to be the same size) and I do not see the need for the second Master Page (unless you want a different look for following pages than page 1). That page is the one that you were seeing. If I remove it then all works great. If you do indeed want a different look, then add the 2nd Master Page in and on its Object Palette choose the Master Page Tab. Click on Restrict Occurance but do not check the Min count and max count. Now on the Page1 subform (in the Design View) click on the Pagination Tab in the Object Palette. Now in the "if dataset must be paginated" section - in the OverFlow field hit the icon jusrt beside it and choose "Go To Page"/ "Page 2". Now when the 1st page overflows it will use the 2nd Master Page as its Page layout. Note that all subsequent pages will use that Master Page design.
    I have attachemd a modified sample using the single Master Page approach.
    Paul

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

  • Webpage previews is no longer caching pages. How do I make sure settings will cache all pages visited?

    Webpage previews is no longer caching pages. How do I make sure settings will cache all pages visited?

    The cache may be full ..
    Using Safari ??
    Open a Finder window. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following
    ~/Library/Caches/com.apple.Safari/Cache.db
    Click Go then move the Cache.db file to the Trash.
    Quit and relaunch Safari to test.

Maybe you are looking for

  • Bridge cs4 opens when I click on bridge cs6

    It worked for the first day but sence then I get sc4 bridge?

  • Sqlj runtime error with oracle 10G in Websphere6 or 5.1

    We are trying to migrate from oracle 9i to 10G and we are compiled all our sqlj code with codegen = -oracle option.(previously we used to use codegen=-jdbc which for some reason doesnot work).it compiles fine with out any erros.. But when we try to r

  • EXIF plugin for Photoshop CS3 MAC version

    Hello everyone, Question: Does anyone know of an industry-standard, reliable EXIF plugin for Photoshop CS3 for MAC? I already have an EXIF tab in my File > File Info tab, but I specifically need a plugin that reads Shutter Actuations from an image. I

  • My Image Capture won't scan

    Image Capture and software called Paperless were working well until last week when they both stopped scanning. The overview does, but the actual scanning button is grey on both programs. The manufacturer of Paperless says the problem is wth Image Sca

  • Looking for software

    I wasn't really sure which forum to put this in, so if this is the wrong place... my apologies in advance. This is a bit of a "general purpose" inquiry regarding a specific piece of software that may or may not exist. I'm looking for a piece of "spec