Cache-control for browser in WL

Hi,
Is there way to remove the cache-control of the browser from property file?
I found someone suggests this method to avoid "page expire" message from
browser on the web but I can not found any setting in WL's property file.
Please help!
Thanks.
Eric W.

This cannot be set in the weblogic.properties file.
However you can set it on each of your .jsp or html pages
by manipulating meta tags.
<META HTTP-EQUIV="Expires" CONTENT="0">
<META HTTP-EQUIV="Pragma" CONTENT="No-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="private">
"Eric Wu" <[email protected]> wrote:
Hi,
Is there way to remove the cache-control of the browser
from property file?
I found someone suggests this method to avoid "page expire"
message from
browser on the web but I can not found any setting in
WL's property file.
Please help!
Thanks.
Eric W.

Similar Messages

  • Creating a cache control

    Has anyone created a cache control for Workshop?
    I'm wanting to cach the results of a complex report by using the xbean. Then if the request parameters match an already generated report, I simply send back out a pregenerated xbean.
    The cache would need a time expiration and max size handling.
    Thanks,
    Rodger Ball
    Sr. Software Architect
    Business Wire.

    If you have the option to use WLP, you can access the com.bea.p13n.cache APIs to write a Control that uses the portal cache functionality, which includes:
    * time-to-live (LRU removal), max size configuration
    * JMX based administration, including built-in admin from adminPortal and Workshop.
    * cluster aware flushing.
    Of course, if you can't or don't want to include portal, that won't work for you :)
    Greg
    Has anyone created a cache control for Workshop?
    I'm wanting to cach the results of a complex report
    by using the xbean. Then if the request parameters
    match an already generated report, I simply send back
    out a pregenerated xbean.
    The cache would need a time expiration and max size
    handling.
    Thanks,
    Rodger Ball
    Sr. Software Architect
    Business Wire.

  • Cache-control settings

    hi
    On cisco css11506, I trid to find how to configure cache-control for a vip, currently I do not configure anything on header. what is default for cache-control settings?
    Any comments will be appreciated
    Thanks in advance
    julxu

    Sorry for the misleading, actually, my client want insert
    it into a https side which resident on my css11506.
    so, it is two questions:
         1. the server set cache-control to private, on client set it sill is no-cache, is css11506 change it?
         2. if so, how do I corrected? how do I force cache-control to set private?
    Any comments will be appreciated
    Thanks in advance
    julxu

  • Cache problem for servlet opening new browser window

    Requirement:
    I have JSP page say summary.jsp with link "print account summary"
    When user clicks on this link, new browser open with PDF document of summary.jsp
    This new browser window should not have address bar and toolbar.
    Solution:
    Servlet called PrintSummary which sets contenttype=application/pdf and sends the data to outputstream.
    href of link is
    Java script function is:
    function openWindow(url){
    window.open(url,'blank','toolbar=no')
    Problem:
    Since the URL of this new window is
    http:// host:portnumber/PrintSummary
    Even if I click the "Print summary" link for account2,
    being the same URL (http:// host:portnumber/PrintSummary) it accesses the existing page in the cache which is created for account 1.
    In href if I just use servlet url as
    I get the expected behaviour but then I don't have control on browser appearance and browser window will be with address bar and toolbar.
    The only option I could think of was changing URL as follows:
    <% String url ="javascript:openWindow('PrintSummary? var1="+ Math.random()+"')";
    So that URL is different all the time
    Is there any way to solve this problem?
    Thanks in advance
    M.

    I'd definitely try to use a Flex popup... but the
    flash.net.navigateToURL method is a simple way to open a popup
    window in a new browser. You can pass any data needed by the new
    page using the URLRequest and/or URLVariables. The URL you navigate
    to could, of course, be another Flex application if necessary. I
    use this only when I need to open a popup window on another site,
    or an HTML formatter report or something similar.
    Concerning yourself with the size of the popup window may be
    a bad design choice also. I, for example, have my browser
    configured to open all popups in a new tab regardless of sizing
    constraints imposed by the designer. If it is absolutely necessary
    for you to have control over the size of your popup window, you
    should follow the advice given by others and use a Flex
    popup.

  • Cache control directives for Weblogic 6.1

    Hello:
    I was wondering if anyone knew if one could configure Weblogic 6.1 to produce
    cache control headers (ie "Cache-control: max-age=1800")? I realize that I should
    probably be using a conventional HTTP server and the WLS plugin, but I'm just
    doing some research here. So any help would be appreciated.
    Thanks,
    Scott Resnik

    Can you show us your obj.conf file?
    Thanks
    Manish

  • Reader X doesn't display Pdf stream if response contains header "Cache-Control: no-store, no-cache"

    Hi all,
    I work on a web application that, among others, generates Pdf documents. It renders them directly within the IE window by "streaming" the content of the Pdf in the response output stream. Note that we also add the header "Cache-Control", "no-store, no-cache, must-revalidate,post-check=0, pre-check=0" to the response.
    Everything was fine with previous version of reader but since I installed Adobe reader X the content of the Pdf is not showing any more in my browser.
    Here is what I already investigated:
    - if I use another machine with an "older" Reader version, it works. If I save the displayed Pdf and try to open it on the machine where X is installed  it works
    - if I remove the the Cache-Control header, then it works with reader X installation
    Do you have any idea what changed between version 9 and X that could lead to this issue ?
    To ease diagnostic I created a sandbox environment to reproduce the problem, you can go to the following address to see what's happening (or not in case you have version X installed)
    With the Cache-Control header: http://readerxissue.appspot.com
    Without the Cache-Control header: http://readerxissue.appspot.com/enableCache.html
    I must confess that I am a bit stuck and I wonder if some of you could help.
    Thanks a lot
    Regards
    Vincent

    Hello,
    We have semiliar problems in sweden with Adobe Reader X 10.1 Swe and Internet Explorer 8.0 with streamed PDF files.
    We had some issues and got them resolved by the following
    Upgraded to Adobe Reader 10.1.2.45 Eng
    - Print Issue:http://helpx.adobe.com/acrobat/kb/pdf-wont-print-reader-10.html
    - Grey box in Internet explorer: http://helpx.adobe.com/acrobat/kb/pdf-opens-grey-screen-browser.html
    - Add site as trusted: Edit-> Preferences, unbox Enable Enhanced Security + add the host/url to site that is whitelisted to send pdf files
    (the Automaticly trust sites from mu Win OS security zones doesnt work for us)
    The thing is we run MUI pack on our Citrix servers and want Adobe Reader in Swe but it havent been translated yet...
    So we have to wait for the swedish release on Adobe Reader X 10.1.2
    Thanks,
    Tony Van Der Haagen
    IT-Mästaren
    Sweden

  • Force cache refresh for my website

    Hello,
    I have a problem on my website : http://kevinpounot.olympe.in/<br />
    This problem appear just with Firefox.
    When I update my site with new photo or if I change the main page, the modifications does not appear in Firefox.
    The browser just load the caching version of my website and the new stuff is not here.
    I already tried some codes like :
    <pre><nowiki><HEAD>
    <META http-equiv="Cache-Control" content="no-cache">
    <META http-equiv="Pragma" content="no-cache">
    <META http-equiv="Expires" content="0">
    </HEAD> </nowiki></pre>
    or
    <pre><nowiki><?php
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
    header("Cache-Control: no-cache, must-revalidate");
    header("Pragma: no-cache");
    ?> </nowiki></pre>
    Nothing works.
    Is there a code which could force the browser to refresh cache and load the latest version of the site ?
    PS : Sorry for possible mistakes in my english. ;)

    The first thing to check is whether you have any caching plugins like WPSuper cache if you are using a CMS like Wordpress.
    These create temporary HTML versions of your page so it is not enough to deactivate them, you have to activate them and then delete their cache from their settings page.
    If you are a developer and never want cache loaded then
    enter the following into your address bar
    about:config
    Tell it you understand it is dangerous
    enter cache into the search bar and look for
    browser.cache.disk.enable
    Read about what it does here
    http://kb.mozillazine.org/Browser.cache.disk.enable
    clicking it sets it to false
    This will make firefox slower but will work
    You can use this as an alternative
    browser.cache.check_doc_frequency
    read about it here
    http://kb.mozillazine.org/Browser.cache.check_doc_frequency
    basically the settings are
    0 Check for a new version of a page once per session
    1 Check for a new version every time a page is loaded.
    2 Never check for a new version - always load the page from cache.
    3 Check for a new version when the page is out of date. (Default)
    but this does not work so well for me
    Note that
    browser.cache.disk.enable
    must be set to true for
    browser.cache.check_doc_frequency
    to make any difference
    Note that your ISP may be caching, if so consider using different nameservers like openDNS or Google DNS

  • Can't propagate Cache-Control headers with Surrogate-Control header

    My application may set the following response header to cause webcache to process the esi:include's:
    Surrogate-Control: content=ORAESI/9.0.4, max-age=3600
    It and also may set the following intended for the browser cache:
    Cache-Control: private
    or say:
    Cache-Control: max-age=3600
    However Webcache removes this and always adds the following whenever surrogate-control has been set:
    Cache-Control: max-age=0
    This means I can't have browser caching and esi page compilation, just one or the other.
    This seems to be designed behaviour can someone explain why this is and if it can be worked around?
    I realise that the Cache-Control header should be ignored by webcache but why cant I propagate it to higher caches?

    Patrik,
    You'll need to convert the meta http-equiv tags into actual HTTP headers before sending for Web Cache to be able to parse it.

  • Cache-control, Expires headers

    I want JNLP files and JAR files to be cached by JNLP clients, but I want to prevent them from being cached in a browser / proxy server / ISP server of some sort (anything that would prevent the JNLP client from getting updates).
    To stop a web page being cached I typically use the following:
    response.setDateHeader("Expires", 1L);
    // Set standard HTTP/1.1 no-cache headers.
    response.setHeader(
    "Cache-Control", "no-store, no-cache, must-revalidate");
    // Set IE extended HTTP/1.1 no-cache headers (use addHeader).
    response.addHeader("Cache-Control", "post-check=0, pre-check=0");
    // HTTP 1.0 header
    response.setHeader("Pragma", "no-cache");This works well in stopping caching of web-pages, and it doesn't stop the Sun Java Web Start client (JRE 1.5) from caching JNLP / JAR files (I don't think it's actually checking any of the above headers).
    However, I have read that setting the above headers can cause problems. Does anyone know the official line on this? I couldn't find anything in the JNLP spec.
    If it makes a difference, the app will be deployed only on JRE 1.4 or later.

    LateNightMovies,
    > Hi, thanks for your reply (and sorry for posting my
    question
    > twice)...
    No worries. :)
    > ** unfortunately, your solution doesn't work.
    It's possible I didn't understand what you're after.
    > My objective is to "not have the page stored" (saved) in
    the
    > cache (it contains data I don't want stored in client
    browsers).
    Aha. Nine times out of ten, when people say they want to
    want to avoid
    cacheing, what they mean is, "Get Flash to always ask for new
    data," which
    is what that blog entry describes. If it's important that the
    data not be
    cached at all....
    > Adding a ? var - does ensure the page is always
    retrieved
    > from the server - but it still gets saved in the browser
    cache.
    Right.
    > Eg. my url = page.asp?param=# (random number)
    >
    > The browser cache (Content.IE subdirectories) fill up
    with
    > files = page[1].html, page[2].html, page[3].html,....
    Yup. Well, shoot. This question isn't something I can just
    roll off
    the top of my head, then. :-/ I should think that your HTML
    header would
    take care of that.
    Are you appending the random number in your LoadVars method
    calls? The
    HTML page shouldn't be refreshing at all.
    I know a few people I can ask for futher input, and I'll
    report back to
    this thread.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Prolem with Cache-Control:max-age http header

    Hello
    It seems that safari do not take into account Cache-Control:max-age=31536000 http header.
    Sending this header to the browser I would expect that safari will not ask the server for these resources before current date + one year.
    It's the way IE and FireFox are working but safari is asking the server for these resources every time my html page is loaded (see http requests below).
    Server returns a 304 status to indicate that the resource is not modified.
    Does somebody have an idea about this strange behaviour?
    I'm surprise that Safari do not respect RFC specifications.
    Is there a settings to enable Cache-Control ?
    Perhaps I forgot safari's specific headers..
    Thanks
    +GET 786+
    GET /xtend/htmrsrc/LIB/XtendAjaxScripts.js HTTP/1.1
    +RESP 786+
    HTTP/1.1 200 OK
    Server: Apache-Coyote/1.1
    Last-Modified: Wed, 15 Oct 2008 13:25:24 GMT
    *Cache-Control: PUBLIC, max-age=31536000, must-revalidate*
    *Expires: Thu, 05 Nov 2009 13:09:10 GMT*
    Content-Type: application/x-javascript;utf-8
    Content-Length: 2856
    Date: Wed, 05 Nov 2008 13:09:10 GMT
    +GET 799+
    GET /xtend/htmrsrc/LIB/XtendAjax.js HTTP/1.1
    If-Modified-Since: Fri, 24 Oct 2008 07:59:24 GMT
    +RESP 799+
    HTTP/1.1 304 Not modifed
    Server: Apache-Coyote/1.1
    Date: Wed, 05 Nov 2008 13:11:19 GMT

    This is a User to User forum, not a developer forum. You need to avail yourself of developer resources for this problem instead of posting them here.
    Mulder

  • Cache-Control in OC4J

    We had very typical problem in our web application.
    We are using Oracle AppServer 10.1.2. on Sun Solaris with Web-Cache Enabled.
    When we are trying to access the pages the response object contains multiple Cache-Control headers, though we have not explicitly added through our code. Can any one tell me how to delete the response headers through code or at server settings. I have tried with "reset()" but of no use.
    Because of this cache problem we are not able to generate the reports but the same it working with Firefox browser.
    Thanks in advance.
    Kishore

    It's unfortunate that JSPs running in WebLogic can't override the default Cache-Control directives in Web Server. That's probably a bug in the WebLogic plugin. (It is possible for JSPs running directly on Web Server to override the default Cache-Control directives.)
    As with any obj.conf directive, you can configure Cache-Control directives on a path-by-path basis. For example, the following would set Cache-Control: no-cache for /foo/*.jsp and Cache-Control: private for all other URIs:<Object ppath="/foo/*.jsp">
    PathCheck fn="set-cache-control" control="no-cache"
    </Object>
    <Object name="default">
    PathCheck fn="set-cache-control" control="private"
    </Object>Information on obj.conf syntax, including how to configure separate objects for separate paths, can be found in the Syntax and use of obj.conf chapter of the NSAPI Programmer's Guide at http://docs.sun.com/source/817-6252/npgobjcn.html.
    I'm not sure what you mean by "what are the services handled by the web server and the the app-server and how they interact with each other". However, it's worth noting that Sun ONE Web Server 6.1 is fully capable of running JSPs by itself; there's no need for a separate WebLogic server.

  • Cache-Control problem

    I don't really know if this is a Tomcat problem or a jsp problem... I have some java server pages with form components and when I hit the back button in a browser, the contents of a form disappear. I checked the response header with a perl script and it seems that there's always Cache-Control: no-cache and Pragma: No-cache in the header. I didn't put them there. I've tried to put some lines as
    response.setHeader("Cache-Control","max-age=3600");
    response.setHeader("Pragma","max-age=3600");
    response.addHeader("Cache-Control","max-age=3600");
    response.addHeader("Pragma","max-age=3600");
    into my jsp, but they have no effect. I've tried disabling all filters, no effect. I've done a full text search on the whole tomcat directory tree with keywords like no-cache, cache-control and those words don't appear anywhere (but in my jsp). I suspected that apache could mess things up, but browsing the jsp's directly from tomcat (through port 8080) does the same.
    Running out of ideas... Do you have any?
    -Marko

    It's neither. It's a browser problem... and perhaps your assumption that the browser has to remember what was in the form fields when you go back. Cache control has to do with caching the page, not form input anyway. I've never seen any header settings which tell instruct a browser what to do with form data after the form is submitted.
    You could provide a back button on the form and have the JSP fill in the default values based on what's stored in the session, if you are storing it in the session. But if it's not a multipage form, there usually is no reason to be "going back" anyway, because the form is submitted and whatever's done with that data should be done by that point.
    Tomcat could be defining default headers for anything in some config file.

  • Cache-control header

    I have an authenticated webapp with a servlet that send information back to the client browser that is not particularly sensitive. As such, I'd like for the client to be able to cache the retrieved data for a reasonable amount of time.
    Thus, I've added the following code to my servlet:
    long expireTime = System.currentTimeMillis() + (7 * 24 * 3600 * 1000); // Cache for one week
    response.setDateHeader("Expires", expireTime);
    response.setHeader("Pragma", "cache");
    response.setHeader("Cache-control", "public");While my expires header is indeed getting set to the date that I specify, AS7 is ignoring my Pragma header and sending two (!) Cache-control headers (as seen in a packet dump using ethereal):
    Hypertext Transfer Protocol
        HTTP/1.1 200 OK\r\n
        Server: Sun-Java-System-Application-Server/7 2004Q2\r\n
        Date: Sat, 23 Apr 2005 01:30:15 GMT\r\n
        Content-type: message/rfc822\r\n
        Expires: Sat, 30 Apr 2005 01:30:15 GMT\r\n
        Pragma: No-cache\r\n
        Content-disposition: attachment;filename=msg145206-11461.eml\r\n
        Cache-control: no-cache\r\n
        Cache-control: public\r\n
        Transfer-Encoding: chunked\r\n
        \r\n
        HTTP chunked responseAm I doing something wrong, or is this a bug in AS7?
    This is really causing a problem, because I want the browser to toss this data stream over to Outlook Express (the data is an e-mail message) but IE sees the no-cache header and refuses to write the file to disk, and thus, OE has no file to open.
    Thanks,
    Bill

    Oh, BTW we believe this header modification is happening because we are setting a cookie and so WLS sees this and adds its own header. Still, we don't want WLS to do anything with the headers.

  • Wiki cache-control

    I'm becoming confused by the settings for caching wiki pages and their elements.
    Using the develop menu and Network Timeline window in safari I can follow the downloading of images, css, js files etc.
    I recognise that the wiki page itself is set not to cache for obvious reasons of maintaining up-to-date copies of a page, but the other elements seem to sometimes be cached by my browser and at other times (i.e. currently) resolutely not cached.
    The network timeline (currently) says that all the others files have their cache-control set to max-age = 0. Hence it is not surprising that my browser repeatedly downloads the files.
    O.K. So the question is;
    What sets this value? Presumably the wiki server ( although possibly my browser), but on what basis, how and can it be changed?
    When I first started looking at this issue, a few weeks ago, I managed to arrive at a situation where almost all 'elements' were being successfully cached and page downloads were under 2 seconds. Currently It's up to over 6 seconds. I don't know if, or how, I've changed anything.
    Can anyone offer any guidance or direction as to where I can find out more about how these settings are achieved?
    Ta.

    I realise that it is the weekend but although this post has prompted a reasonable number of views no responses, so I will offer a little more information about the situation in the hope of eliciting some advice...
    I have edited the httpd_teams.config file to include the line
    Header set Cache-Control "max-age=600001, private, must-revalidate"
    and restarted Apache.
    I then clear the cache in Safari, quit and restart.
    On re-entering the URL of the wiki it loads a page in approximately 7 seconds. On inspecting the request and response header of one of the .css files, for example, the request makes no reference to cache-control but the response, correctly, contains the cache-control statement as set above.
    However, when I navigate to another locaction and then return to the page the .css request contains max-age=0, ( with the response still correctly set).
    WHY?
    Just to make matters 'worse', some other files, particularly .png files for some reason, correctly retain the set max-age and use the cache as I intended.
    Clearly, I am missing something. Does anyone have the slightest idea what or how to go about working it out?

  • Specific CACHE-CONTROL abilities?

    This may be more of an actual server setting, but I thought I
    would check and see if anyone came up with a way to do this through
    straight CF coding.
    On sites that require time-sensitive updates, we always use
    the CFHEADER and CACHE-CONTROL settings ... it works very well, but
    I am hoping to make this even more dynamic.
    When you use cache-control in its default format, it causes
    EVERYTHING on the page to not be cached and therefore reloaded.
    What I am wondering is if there is a way to code CACHE-CONTROL so
    it will still allow images to be cached, but not the actual HTML
    page code. Reloading images all the time is not always necessary
    and it would be nice to save bandwidth wherever possible.
    Since caching is done by the browser, I am surprised there is
    no way to specify what objects can be cached and what cannot with
    these tags; so I am hoping I am just overlooking something.
    Thanks in Advance.
    IIS6:Win2003:CFMX7

    This isn't really an answer, but you could try looking into
    serving the images from a different domain and setting cache
    headers on the web server, then for the page set different cache
    headers that expire immediately. Untested, Untried and just
    throwing it out there.
    ie
    http://images.mydomain.com
    http://www.mydomain.com
    I get the idea from Yahoo's YSlow plug in for firefox which
    rates the page, and one of the ratings is for CDN (Content Delivery
    Network), try googling that.
    Sorry can't be of any more specific help.

Maybe you are looking for

  • Sky Router firmware upgraded - can no longer login with credentials

    I usually have no problems accessing my sky router (white Sky Hub with ADSL) via the page 192.168.0.1 however I tried to login the other day and was greeted with an updated looking summary screen - all very nice I thought, let's go and explore! Howev

  • Anybody been told MacBook Air is 'Not A Laptop' when complaining about heat?

    My MacBook Air gets so hot I cannot comfortably keep it on my lap. When I called Support to talk about this they told me it is not a laptop but a portable computer. I find this completely unacceptable and expect a repair or refund - the ones in the A

  • Project wise TB

    hai.. We are using SAP B1 2005 with PL 40 How we can restrict a user from viewing the Trial Balance. In entry level we have restricted but while viewing the reports all the projects are being displayed. What level of authrosiation has to be set and h

  • Why won't mail scroll?

    I have a magic mouse, but mail will not scroll with it.  Everything else scrolls, but mail will not.  Help!

  • Photoshop CS3 and XP Service Pack 3

    After installing SP3 for XP I encountered problems while opening files in Photoshop. It takes 10x times more to open GIF, JPEG, PNG and PSD files than before. While it opens, Photoshop seems to freeze and it takes up to 20 seconds until a 10x10 pixel