Page Expire - How to keep in cach from post request !!!

I have a big problem with the back button resulting in Page Expired message. The system framework is to call servlets from any page. A servlets will perform necessary computations and forward the request with additional objects to a jsp page, which will in turn construct the page and display it to a user. Some of the constracted pages have back button, which simply redirects to the previous page.
The problem that I have has been described in multiple forums before, but still appears to be not solved. When I press the back button that shall display previous page, generated by the Post request, I get Page Expired message. Note that this occurs only in IE (I am using 6.0 with SP1) and not in Mozilla (I am using 1.3). I did my homework and tried the following code in different combinations, but unsuccessful:
resp.setHeader("Cache-Control", "public");
res.setHeader("Pragma", "Cache");
res.setHeader("Expires", "Fri, 30 May 2003 12:00:00 GMT");
or directly in jsp page
<META HTTP-EQUIV="Pragma" CONTENT="cache">
<META http-equiv="expires" CONTENT=" Fri, 30 May 2003 12:00:00 GMT ">
None seems to work in IE. It appears that the IE refuses to cache the page generated by the post request at all times.
The application that I am working is huge and this is a big problem for us, we need to support IE with back buttons.
Please help.

I believe this is a requirement of the HTTP
specification.Yep - section 13.10 for anyone who can't sleep. I believe the idea is that methods such as POST, PUT and DELETE cause an update at the server and so caching makes no sense - the client needs to view a new copy.
To quote the spec:
Some HTTP methods MUST cause a cache to invalidate an entity. This is either the entity referred to by the Request-URI, or by the Location or Content-Location headers (if present). These methods are:
- PUT
- DELETE
- POST

Similar Messages

  • How to keep .tag-files from accessing request?

    How can i keep .tag-files from accessing the request? I only want to allow the .tag-file access to parameters given to it as input attributes.

    Don't use the request object then.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Each time I open Safari it opens the last web page I was at rather than my home page. How do I stop this from happening?

    Each time I open Safari it opens the last web page I was at rather than my home page. How do I stop this from happening?

    This is part of Lion's Resume feature (I assume you are on Lion).
    A couple of things you can do: System Preferences>General and deselect 'Restore windows when quitting and re-opening apps'.
    Also when you shutdown or restart make sure the following is unticked:

  • How to delete the cache from Presentation Services(Web UI)

    Hi,
    How to delete the cache from Presentation Services(Web UI) and from rpd also.

    Hi,
    For Presentation services cache refer : http://gerardnico.com/wiki/dat/obiee/presentation_service_cache
    For RPD Cache :
    Admin tool(rpd) > Manage > Cache > Action > Purge
    or check following links
    http://gerardnico.com/wiki/dat/obiee/event_table
    http://oraclebi.blog.com/automating-cache-purging-without-using-obiee-scheduler/
    cheers
    Aravind

  • How to keep Folder Windows From Opening When Turning On System

    I have a couple hard drives connected to my APExtreme. When I turn on my Mac Mini it mounts the drives correctly and shows them on the desktop. It also opens windows for each drive. How do I keep these windows from opening?
    Thanks!

    Uncheck this when shutting down:

  • How to keep homesharing active from iTunes on Lion OS?

    I have 4 Macs (w MBPs, 1 iMac, 1 Mac Mini) and 2 Apple TVs (latest). Only the Mac Mini is on Lion OS (10.7.4) since that is what it came with new. I use it to serve my media to the Apple TVs, but they can also get served from the other 3 Macs (all on Snow Leopard 10.6.8).  Only the Mac Mini on Lion drops homesharing when not in use - the other Macs on Snow Leopard keep homesharing alive. While it is actively streaming, the Mini does not drop the feed.  I have the Mac Mini set to never go to sleep or or to screen saver, so it should remain accessible via homesharing.  But if I don't use it for an hour or two, it drops out of homesharing - and it is the only Mac to do so.  I can get it back by quitting then restarting iTunes or by shutting down homesharing and restarting it while keeping iTunes open.  Of course, a restart of the mini would also bring back full functionality.  None of these are acceptable when you are sitting in another room trying to access media via Apple TV.  As a result of the above, I am assuming that the problem is isolated within Lion OS and how it supports iTunes.
    I have seen other discussions claiming Apple TV drops out, but my problem is definitely the Mac Mini on Lion since at the same time I can see it drops from the other Macs and not just from Apple TV - all homesharing devices lose sight of the Mini but keep seeing each other.
    I'd love to downgrade my Mini to Snow Leopard but apparently can't. I'd buy an older used Mini, but I need HDMI - so, I'm stuck until this is fixed. My other devices will definitely stay on Snow Leopard until I see this problem resolved by Apple.
    Any suggestions on how to keep homesharing alive with iTunes on Lion?

    Everything that is on your ipod should also be on your computer.  is it not?
    You can redownload some purchases:
    Downloading past purchases from the App Store, iBookstore, and ...

  • How to keep a subject from being affected by a mask

    i have a shot in an office where i have a subject walking in front of some really bright windows.  i added an adjustment layer and made 6 mask squares over the windows and brought down the brightness a bit.  of course when the subject walks in front of those windows you can see the shaded mask on him.
    im not sure what you call it but what do i do to him to keep the mask from showing on him? 
    not sure if i should make another thread but ill ask this as well in here...in the same shot because of the bright windows originally the rest of the scene inside the office is dark.  how do i brighten the rest of the scene without affecting the windows?  i tried duplicating the adjustment layer with the 6 masks and inverting them so i can brighten everything but windows but no matter what i did i couldnt get it to work. 
    TIA

    think layers... you need to separate the person from the background on another layer with an animated mask. This is called Rotoscoping. RotoBrush is a tool that may work.
    Same thing for your second question, LAYERS, not duplicate adjustment layers, but duplicate your scene, do your masking, apply adjustments and you will be OK.

  • How to clear the cache from Mac Book Pro

    What is the simplest way to clear out the cache from my Mac Book Pro?

    I will also endorse Thomas_r's comments.  If anything, I would use OnyX, which is a well known maintenance tool.
    Beware that there is also an "onyxmac" website, which is malware and to be avoided...
    The OnyX developer is Titanium software, here:
    http://www.titanium.free.fr/downloadonyx.php

  • How to get a parameter from each request in a session scope BackingBean

    While calling my JSF page, I pass an id as parameter in the URL, and in the Backing bean I retrieve it from the request.
    On each request I need to get the id and populate the page accordingly.
    But I am forced to create my Backing Bean in session scope b'cos otherwise ValueChangeListener method does not work properly.
    So where and how do I get the id on each request?
    Pls. help

    What you can do is create it in the request scope like this:
    <managed-bean>
          <managed-bean-name>personBean</managed-bean-name>
          <managed-bean-class>
            com.PersonBean
          </managed-bean-class>
          <managed-bean-scope>request</managed-bean-scope>
           <managed-property>
                 <property-name>id</property-name>
                 <property-class>java.lang.Long</property-class>
              <value>#{param.id}</value>
          </managed-property>
    </managed-bean>And then in the page use a hidden field to set the id in case of a postback (validation error):
    <h:inputHidden id="id" value="#{personBean.id}"/>Does that help you?
    Thomas

  • How to change value date from posting date to net due date

    Hi Gurus,
    My client wants to change value date from posting date to net due date. currently posting date is considered as value date but in future client wants to change value date to net due date of documents.
    1. what configurations need to be maintained to change value date from posting date to net due date.
    2. Will these changes effect automatic payment run.
    Thanks and Regards,
    Suresh

    Hi Suresh,
    In Future
    While posting the documents you can mention the value date as due date of the documents.
    For already posted documents
    You can change the value date to net due date.
    If the value date is display mode i.e. if you are not able to change the value date in FB02 (Document Change Mode), use OB32 transaction and make value date field as eidtable (BSEG-VALUT).
    In OB32 transaction enter all the required fields like Account type, transaction type, company code and finally activate the Field can be changed check box.
    But not sure, whether we can change the value date to previous date or not?
    This would help you..
    Regards,
    Praisty
    Edited by: Praisty on Jul 28, 2009 9:56 AM

  • How to invoke Java class from post.POST.jsp

    Hi All,
    I am trying to invoke a simple java method from post.POST.jsp
    I am getting below exception while doing it.
    org.apache.sling.api.scripting.ScriptEvaluationException: org.apache.sling.scripting.jsp.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 32 in the jsp file: /apps/mywebsite/components/customFormAction/post.POST.jsp
    The method test() is undefined for the type DatasourceUtil
    29:          
    30:           ///
    31:          com.day.test.datasource.DatasourceUtil dsUtil = new com.day.test.datasource.DatasourceUtilImpl();
    32:          dsUtil.test();
    33:           //dsUtil.validateLogin(request.getParameter("username"), request.getParameter("password"));
    34:          
    35:           ////
    It appears to resolve the class correctly. I could run the code, if I only comment  dsUtil.test();. As soon as I uncomment, it gives above error.
    In the Utill I have a simple void method which will print a simple text. My package structure is as follows.
    any help will be great
    Tx

    1.  In the interface [1] not the implementation[2] have u defined the method test?
    2.  If it is implemented, Change the bundle version in bnd file and make a new build. Then from felix console verify the latest version reflected in the bundles.
    If 2 works & you are going to make lot of frequent changes then give the version as snapshot till it get stable.
    [1]  com.day.test.datasource.DatasourceUtil
    [2]   com.day.test.datasource.DatasourceUtilImpl

  • How to keep the installer from installing iTunes in Program Files?

    I am running Windows 7 64-bit.  Because the folder "Program Files" is a protected folder in Windows I want to install iTunes under a folder "C:\Apple\iTunes".  If I download iTunes and manually install it I can tell it to put it there and it installs there fine.  If it tries to install iTunes under "C:\Program Files" all sort of problems are created.  Sometimes ownership of the folder is lost and that is a real pain to fix so I can delete the program.  Once after I created this folder and install iTunes under C:\Apple I received notice that the installer had an update to iTunes.  I told it to install it and it replaced the one in the C:\Apple folder like it was supposed to.  Since that one time, months ago, every time the installer goes to install an update it wants to put it in C:\Program Files and the installation fails.  Sometimes I can actually delete the folder that it has created sometimes the ownership is messed up and I have to start up in Safe Mode to delete it.  (A real pain.)
    So can I prevent the installer from putting the updates in the C:\Program Files folder and if so how?  It finds the old version, under C:\Apple, but won't put the new installation there, so it fails every single time.
    Any ideas?

    If you go to the standard download page it will detect the architecture of your PC and offer the correct installer.  Up to iTunes 12.0 the "64 bit" versions of iTunes were actually 32-bit applications with a 64-bit installer - so will install in C:\Program Files (x86).  As of iTunes 12.1 it is a "true" 64-bit application so installs in C:\Program Files.
    You can avoid using the Apple Software Update by:
    in iTunes, unchecking the Check for new software updates automatically box in Edit > Preferences > Advanced
    in Apple Software Update, select the "Never" radio button in Edit > Preferences > Schedule
    If you want to keep these active so that you're notified when there is a new version of iTunes available, just click Quit when the Updater opens and then install manually.  There's no accessible option in the Updater to alter the target folder for automated installations.  There's probably something in the Windows Registry that relates to this, but I'd be wary of changing this without substantial testing - there could be interaction/conflict with Windows settings regarding the correct location of 32- and 64-bit applications.

  • How to keep visited links from changing color?

    FIRST, I want to say that it took me 10 minutes to find (accidentally) how to start a new thread.  In my profile?  Could it be any more obscure?
    </rant>
    Yeah, I go to change page properties and make links and visited links the same color.  It still changes, and this happens to be on a page where the background color provides poor contrast to the color the links are changing to.  Is there a way to do this that is not overridden by the web gods?  Or whatever?
    Thanks

    Yeah, I'm a dinosaur.
    Learned HTML from Elizabeth Castro's first edition; then went to DW MX,
    where I am stuck.  Works for me, obviously with imperfections, as I am
    hardly cutting edge multimedial gripping Web designer.
    Thanks for observations.
    I'll ask for help again: I really, truly, cannot find how to start a
    thread on the forum, nor reply to one, and all that.  I don't see any FAQ
    tht elementary, nor anyone to e-mail for guidance.  If you can offer a
    little of that, I will be grateful.
    Thanks,
    Denno
    It's a very dated website using extremely outdated code.
     
    There's a whole mix of HTML formatting and font tags in there which were
    deprecated 10+ years ago.
     
    This all means that the website will behave in strange ways sometimes.
     
    Although it can be fixed, it would take hours to debug, explain and
    implement the changes required, particularly if you've never used CSS
    styling before.
     
    You're better off investing some cash in a modern, well coded, CSS
    formatted template which will give you a sound foundation.
    e.g. http://www.projectseven.com/products/templates/index.htm
     
    Then you can add your content and get good results quickly.
    >

  • How to keep certain videos from automaically being visible in itunes?

    I just installed OS X Tiger and my 10 year old son discovered the itunes button in the dock. To my horror - it had automatically loaded adult videos from my personal folder that he could see. How can I keep these videos out of itunes while keeping the appropriate ones in view?

    Delete them from the library, but when the application asks if you want to "Move files to the Trash", tell it no. Then manually move them to a safer location.
    Beavis2084

  • How to refresh JPA cache from non-JPA code(JDBC)

    In the system, let say there are two different tools are available, Tool-A_Uses_JPA and Tool_B_Uses_JDBC.
    As the name of tools is self explanatory what persistence technology used by tools.
    Say,there is a table COMMON_TABLE. This can be used by both tools to perform CRUD operation.
    Lets see the problematic scenario-
    Tool_B_Uses_JDBC tries to insert some new rows in COMMON_TABLE, by performing following tasks--
    (Tool_B_Uses_JDBC already calculated how many rows will be inserted into COMMON_TABLE. Let's say it is 5.)
    1. Read JPA_GENERATED_KEYS table for getting last_value for COMMON_TABLE. Let's say it is 30.
    2. Add (last_value + number of rows to be inserted), here it 30+5 =35.
    3. Update the JPA_GENERATED_KEYS table for last_value of COMMON_TABLE by the value calculated in step 2.
    In my example it was updated by 35.
    Above three steps done in a single transaction.
    Now, ideally if any other tool use this COMMON_TABLE to perform any insert operation, the last_value from
    JPA_GENERATED_KEYS should be 35. But for Tool-A_Uses_JPA, JPA cache is enabled. So this tool still get
    last_value as 30, rather 35. And hence Tool-A_Uses_JPA, does not work properly.
    So to resolve this issue, i thought to write a code to update JPA cache while updating the last_value.
    Is there any way to update and/or send notification to all other tools to update JPA cache when updating
    last_value form NON_JPA code?
    Or is there any other way to resolve this issues?
    Thanks.

    Marking this as answered, as this can never be a situation the way JPA uses caching. This was issue with the transaction form non-JPA code. Actually when JDBC uses data source then whether transaction will be committed as soon as application issues commit, is not guaranteed. Hence need to work on transaction.

Maybe you are looking for

  • How do I get my iPod to work if I rested it but forgot my Apple ID and Password

    I made an Apple ID and a password a year ago. My iPod touch was locked by my little cousin and I couldn't get in it so I rested it  but now it is asking me for the Apple ID and Password but the thing is that I remember it. So I made a new Apple ID an

  • How Do I Get My Old Themes Back?

    I had to wipe my hard drive and reinstall my Operating System and Applications including iLife06. But all I have are the recent 6.0 iDVD themes. Anyone know how I can get the 5.0 and 4.0 versions back?

  • Can we use af:inputText + af:commandButton to render adf table column?

    Can ADF table column have an inner button? Is that possible to use af:inputText + af:commandButton (custom component?) to render adf table column?

  • Ipad wont sync with icloud

    Hi hope som one can help med with this! I have sync my ipad to icloud, and then wiped my ipad. Now the problem is that when i ask it to sync with icloud it says that my appel id ore password are wrong. I have reset my password but it still say that s

  • How to Create Transport ?

    Hi Guys, I am trying to create transport request and have come across a doubt, while collecting the objects for transport. If i click on "Object type" in "Transport Connection" and choose Infocube as the Object to be collected and create a transport