How to stop caching
hi all
please could someone let me knowhow to stop a JSP page from being cached, which headers do i use?
thanks
Try one or more of these:
response.setHeader("Pragma", "no-cache");
response.setHeader("Expires", "Tue, 25 Dec 1993 23:59:59 GMT");
response.setHeader("Cache-control", "no-cache");
response.setHeader("Last-Modified", "FRI, JAN 29 2099 23:59:59 GMT");
response.setDateHeader("Expires",0);
By the way, there's another smooth way of preventing pages in the cache to be fetched, using javascript. In a href or a submit, use javascript, adding a new Date() in the querystring, this will result in a unique request everytime.
/Ruickard
Similar Messages
-
How to stop caching on the server
Hello,
Can anyone please guide me as to how do we disable caching on the
portal server since the changes i am making in the JSP pages are not
reflected immediately. I have already cleared the browser cache but now i
want to clear the cache on the portalserver. I have also cleared all the
class files created when the jsp was compiled but still there is no change.
If anyone has faced similar problems and can throw some light on it.
akshayAkshay
I faced the same problem as you did.I went thru what Adrian advisesd and it works.Did
you update teh correct XML file?.In my case,the weblogic.xml file is whawt holds
this property and resides in
D:\wlportal4.0\applications\portal\dp2\WEB-INF\weblogic.xml
where 'dp2' is the sample portal iam working on.
I hope this helps.
- Logesh
"akshay" <[email protected]> wrote:
Hi Adrian,
Thanks again for the quick reply but even this setting
did not
work.
This has created a major development problem and the only way out i found
was either to restart the server or change the name of the file which
i am
accessing. Please suggest some other way to achieve this no caching state
on
the server i even cleared the browser cache.
Thanks in advance
akshay
"Adrian Fletcher" <[email protected]> wrote in message
news:[email protected]...
Akshay,
Ok, now I understand your problem. What you need to do is to changethe
JSP
operating parameters for this webapp. These parameters are found inthe
weblogic.xml file associated with your webapp. The reference for thejsp
descriptor element can be found here:
http://edocs/wls/docs61/webapp/weblogic_xml.html#1012195
I think the parameter you need to change is pageCheckSeconds. Ifyou set
this to 0 then the page is checked every request.
Hope this helps,
Sincerely,
Adrian.
Adrian Fletcher.
Senior Software Engineer,
BEA Systems, Inc.
Boulder, CO.
email: [email protected]
"akshay" <[email protected]> wrote in message
news:[email protected]...
Hi adrian,
Thanks for your quick reply I am not aware about theclustered
environment but here i have created a jsp page (named first.sjp)
to
check
a
connection pool i have created which i have placed it along with
the
index.jsp page of stockportal and using the following URl i havemade a
request http://<myportalserver>:7501/stockportal/first.jsp the first
time
when i request for this page it works fine -- the data flows perfectlybut
after making any changes say for example if i change the table name
from
where the data is to be fetched
it does not show me the new data it shows me the data from the previous
table. whereas if i change the name of the jsp page and request itworks
fine. I want to disable this caching
at the server to make this thing work i cleared all the cache ofthe
browser
but still could not achieve no cache state.
thanks in advance
akshay
"Adrian Fletcher" <[email protected]> wrote in message
news:[email protected]...
Akshay,
The design of the caching in portal is such that all changes should
be
reflected immediately, even across a cluster. However there isone
outstanding issue around a performance enhancement for the anonymoususer
case, where this cache is not updated unless the associated .portal
file
is
datasynced. So for changes to the default group either test with
a
logged
in
user of this group or do a datasync to clear the cache.
If this does not solve your problem please let us know.
Sincerely,
Adrian.
Adrian Fletcher.
Senior Software Engineer,
BEA Systems, Inc.
Boulder, CO.
email: [email protected]
"akshay" <[email protected]> wrote in message
news:[email protected]...
Hello,
Can anyone please guide me as to how do we disable caching
on
the
portal server since the changes i am making in the JSP pages
are not
reflected immediately. I have already cleared the browser cachebut
now
i
want to clear the cache on the portalserver. I have also cleared
all
the
class files created when the jsp was compiled but still there
is no
change.
If anyone has faced similar problems and can throw some light
on it.
akshay -
How to stop caching ip address in servlet
I am using iplanet 6.0 with 2.3.1_02 jvm,
Is it possible to set the -D option in jvm12.conf to set the ttl not to cache ipaddresses?
OR Do we have to write the code inside the servlet?Experiment. Write a servlet that prints out the IP address of the host "hello.world".
Stick in "1.2.3.4 hello.world" in /etc/hosts and run the servlet.
Then change the /etc/hosts entry to "9.8.7.6 hello.world" and see what happens (you'll need to wait out your jvm.options ttl setting, obviously).
Now to the real point: at least if you are running Solaris, be careful of the name server ttl cache setting. Test it long and carefully before deploying to production. Avoid it if you have a plan B. Seems like there is a pretty ugly bug in there somewhere.
I run a server that used to have ttl settings. After a couple of days, the server would start throwing UnknownHostException's right and left.
See bug id 4417030 in BugParade; search more for other possibly related reports.
Due to threading, Java needs a re-entrant resolver library implementation. I hear writing one is quite hard, and few if any OSs get it right.
(I do know about the ttl setting for negative lookup results; it ain't that.) -
How to stop the Browser from caching my web pages
Hi There
Can anyone tell how to stop the browser from caching my jsp pages
I am using
<%response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
response.setDateHeader ("Expires", 0);
%>
but this does not work anduser is able to go back to the previous page
which i dont want and i want the browser to display the message the page has expired
Help appreciated
Thanks
Mumtazresponse.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
response.setDateHeader("max-age", 0);
response.setDateHeader("Expires", 0);
I have cut paste the code from my jsp which is working. There is one additional line. I do not know if that is the cause but there is no harm in trying that out.
Srinivasan Ranganathan -
Anyone any advice on how to stop my mail "activity" from continuously caching? is this a problem? I have had inbox issues recently that are not resolved yet but I am not sure if they are related.
Quit Mail. Force quit if necessary.
Back up all data. That means you know you can restore the Mail database, no matter what happens.
Triple-click the line below on this page to select it:
~/Library/Mail/V2/MailData/Envelope Index
Copy the selected text to the Clipboard (command-C). In the Finder, select
Go ▹ Go to Folder
from the menu bar. Paste into the box that opens (command-V), then press return.
A Finder window will open with a file selected. Move the selected file to the Desktop, leaving the window open. Other files in the folder may have names that begin with "Envelope Index". Move those files, if any, to the Trash.
Log out and log back in. Relaunch Mail. It should prompt you to re-import your messages. You may get a warning that the index is corrupt and that Mail has to quit. Click OK.
Test. If Mail now works as expected, you can delete the file you moved to the Desktop. Otherwise, post your results. -
How to stop Safari caching?
When I visit this discussion group in Safari on my iPhone using the link,
http://discussions.apple.com/forum.jspa?forumID=1274, I often get old versions of the page.
Is there some way to force Safari to stop caching and get the latest page?nedhamilton wrote:
Is there some way to force Safari to stop caching and get the latest page?
There is not. However, you can clear your Safari cache in Settting > Safari > Clear Cache -
How to stop Time Machine from backing up Temp Files?
Hi folks!
I am trying to find out how to stop Time Machine from constantly backing up 'useless' temporary files accumulated from web browsing? Although I don't change or add large files to my HD, Time Machine backs up hundreds of MBs every hour. Those file amounts make sense when I consider that I browse a lot to YouTube, SoundCloud, etc to watch videos or listen to music - I just don't want them to be backed up.
Under Time Machine Options I already excluded the following items from backups:
~/Library/Caches
/Library/Caches
~/Downloads
But even though I did this weeks ago, Time Machine stills finds large files to be backed up every hour and my only guess is that I am still missing a location where either Safari or Firefox - the two web browsers I use - store temporary files.
Can you help?
Thanks a lot in advance!oas2103 wrote:
they come from my anti-virus software
Are you sure you need that? There are no viruses that run on OSX. None. Zip. Zero.
If you're running Windoze on your Mac, that's the same as running it on a PC, so it needs all the same anti-everything stuff you'd use on a PC.
There is some "malware," such as Trojans, for Macs, though. But (unlike viruses that can get onto your system without your knowledge), you must approve their installation (via your Admin password) and/or operation (via the "This application was downloaded from the internet ..." prompt).
Appropriately enough, some of these Trojans are included in pirated versions of Apple software, such as iWork!
For the gory details, see Thomas Reed's [Mac Virus Guide|http://www.reedcorner.net/thomas/guides/macvirus].
Thanks a lot again!
You're quite welcome, and thanks for posting back. -
How to stop the cluster node form leaving the Grid.
Hi,
I am new to Oracle Coherence.
I used the following tutorial to get started with Coherence.
http://www.oracle.com/technology/pub/articles/vohra-coherence.html?msgid=6521631
Within JDev an Coherence instance is started, data is entered and queried.
Next I'd like to connect this to a running Coherence instance, (started with [java -jar coherence-home\lib\coherence.jar)
When I start the coherence from cmd and run the application from within JDev, I can see a connection is made
The log says as
2008-07-23 07:03:56.304 Oracle Coherence GE 3.3.1/389 <D5> (thread=Cluster, memb
er=1): Member(Id=2, Timestamp=2008-07-23 07:03:56.117, Address=64.181.243.150:80
89, MachineId=1686, Location=process:4548@SDCHS20I189) joined Cluster with senio
r member 1
Map (?):
2008-07-23 07:03:56.742 Oracle Coherence GE 3.3.1/389 <D5> (thread=Cluster, memb
er=1): Member 2 joined Service DistributedCache with senior member 2
Map (?):
2008-07-23 07:03:58.023 Oracle Coherence GE 3.3.1/389 <D5> (thread=Cluster, memb
er=1): TcpRing: connecting to member 2 using TcpSocket{State=STATE_OPEN, Socket=
Socket[addr=/64.181.243.150,port=8089,localport=4958]}
Map (?):
2008-07-23 07:03:59.007 Oracle Coherence GE 3.3.1/389 <D5> (thread=Cluster, memb
er=1): TcpRing: disconnected from member 2 due to a kill request
2008-07-23 07:03:59.007 Oracle Coherence GE 3.3.1/389 <D5> (thread=Cluster, memb
er=1): Member 2 left service DistributedCache with senior member n/a
2008-07-23 07:03:59.007 Oracle Coherence GE 3.3.1/389 <D5> (thread=Cluster, memb
er=1): Member 2 left Cluster with senior member 1
Is the leaving of node is pre defined. How to stop this. What changes has to be done in the config.xml file.
One more thing.I am not able to see the data i enter through the Jdev Application. To see the data i did the following
Map (?): cache DBBackedCache
2008-07-23 07:08:17.820 Oracle Coherence GE 3.3.1/389 <Info> (thread=main, membe
r=1): Loaded cache configuration from resource "jar:file:/D:/coherence/coherence
/lib/coherence.jar!/coherence-cache-config.xml"
2008-07-23 07:08:18.226 Oracle Coherence GE 3.3.1/389 <D5> (thread=DistributedCa
che, member=1): Service DistributedCache joined the cluster with senior service
member 1
<distributed-scheme>
<scheme-name>example-distributed</scheme-name>
<service-name>DistributedCache</service-name>
<backing-map-scheme>
<local-scheme>
<scheme-ref>example-backing-map</scheme-ref>
</local-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
Map (DBBackedCache): list
Map (DBBackedCache):
Thanks in advanceHi Jona,
Sometime Inner Events might cause this problem.
While handling events avoid processing/handling inner events. pVal.InnerEvent is a boolean property that helps you to identify this issue. So I suggest you to use EVENT FILTERING, if you are not doing that. Let me know if you still have issue.
As Ad Kerremans said, you try to catch events by global try catch.
HTH
With Regards
B.Ravi Shankar -
How to stop "Preparing Video for Display"
I've used FCP for countless projects but haven't ever tried to put hundreds of stills into the timeline for a final result that looks like what free software packages produce for consumer camera stills. I have a number of questions related to achieving this result, but I'll start with this.
The 'preparing for display' message comes up when I move chunks of pictures around. It freezes all activity until it's done (rendering?), and usually the action that led to it is a minor thing that still needs further manipulation. Would it help to reduce the resolution of the stills? How do I do that all at once? There are too many to treat individually.
Thanks for letting me know how to stop getting my process hijacked!
It is really slowing me down, and I'm on deadline.
With much appreciation,
RoxaneStill images are NOT video. FCP has to translate each image into a format that will play as video.
This process happens on the fly and as the numbers of images go up, the amount of time and system resources required to accomplish this also increase in a linear way.
There are a couple of things you can do at the system level.
1. make sure you have your RT playback set to Unlimited.
2. in System settings, increase your stills cache. By default it is around 10% of FCP's RAM. If you have 4GB or more in the machine, your RAM available to FCP should be set at 100% and you may want to bump up the stills cache to 50% (or more if the project is mostly stills). Do not raise it to 100% as you have to leave some free ram for the program.
Along with what Russ has suggested, you should get better performance. You need to be realistic though. FCP is a video editor, not a slideshow generater. If the work is a slideshow, there are better tools.
Have fun.
x -
I added a new email account and now Im getting over 2000 emails. Does anyone know how to stop this?!
Wait until it finishes. It's just downloading the headers of the emails in your account and caching them offline for quick access. Once it has finished it will go back to just downloading new emails as normal.
-
How to stop FF checking compatibility of add-ons every time it starts.
Since upgrading to 4.0.1, FF checks compatibility of add-ons every time it starts. How to stop this?
Did you delete prefs.js in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder]?
* Help > Troubleshooting Information > Profile Directory: Open Containing Folder
This can also be a problem with the file(s) that store the extensions registry.
Delete the files extensions.* (extensions.sqlite, extensions.rdf, extensions.cache, extensions.ini) and compatibility.ini in the Firefox [[Profiles|profile folder]] to reset the extensions registry. New files will be created when required.
See "Corrupt extension files": http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the "Find Updates" button (Firefox 4: click the Tools button at the left side of the Search Bar) to do a compatibility check. -
HT1349 How to stop spinning color wheel and open macair?
How to stop spinning color wheel so can open Mac air system?
Thanks for your suggestions everyone, however....
I just checked out the activity monitor when FCP was being sluggish. FCP was using only 300mb of real memory, and 1GB of virtual memory, even though there was more or less 1gb of real RAM completely unused. I quit and relaunched FCP, and the sluggishness disappeared. Now it is using 200 odd and 650mb of real and virtual memory respectively, and there's still much the same amount of RAM completely free - this looks like the way FCP genreally behaves, and I have to wonder if the sluggishness has much to do with how much RAM I have - it's not using it all whether it's being sluggish or not. I don't want to spend money on more RAM if I don't need to - is this absolutely definately a RAM issue, seeing as there's still nearly a GB free when it's being sluggish? Or is FCP just using virtual memory when it doesn't have to?
In the manual it says that the memory & cache settings in system settings maintain the performance of FCP by preventing it from using virual memory unneccesarily. It says that limiting the amount of RAM used helps, which seems counterintuitive, the obvious thing would be to turn it up to full. Can anyone tell me the optimum setting for the memory panel in system settings? -
how to stop duplicating mail
Hi rianmu, and a warm welcome to the forums!
Not certain, but this can fix myriad Mail problems...
Safe Boot from the HD, (holding Shift key down at bootup), it will try to repair your Disk Directory while the spinning radian is happening, so let it go, run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, then move these folder & file to the Desktop.
Move this Folder to the Desktop...
/Users/YourUserName/Library/Caches/Mail/
Move this file to the Desktop...
/Users/YourUserName/Library/Mail/Envelope Index
Reboot.
If that doesn't do it and you can afford to redo all your Rules, try these & reboot...
/Users/YourUserName/Library/Mail/MessageRules.plist
/Users/YourUserName/Library/Mail/MessageRules.plist.backup -
How to stop mail from recovering the same message over and over again to the extent that it has wiped out all start up disk memory?
You need to find and delete (move to the Trash) the offline mail cache (.offline cache.) It's a hidden folder (files and folders with a preceding dot are hidden) inside the Mail folder (inside IMAP) in your user library. Since it's hidden, in order to see it run the following command in Terminal in Applications>Utilities. Hit return/enter once you have pasted in the command.
defaults write com.apple.finder AppleShowAllFiles -bool true ; killall Finder
To reverse this and hide all those hidden files and folders again
defaults write com.apple.finder AppleShowAllFiles -bool false ; killall Finder
Leave hidden files/folders enabled until you finish emptying the Trash so you know it's gone. -
My MacBook Pro will automatically jump from a program (Safari, Excel, etc.) to the Finder window. Can anyone tell me how to stop this?
Please read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of certain system caches.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.
Maybe you are looking for
-
This does not always happen, for example if I get a PDF file by email, it appears to be primarilly when I download from the internet. I use Adobe Reader X1. Can you assist please. Thanks
-
Reformatting, will i be able to keep Microsoft Office as I have lost the CD
I want to reformat my MacBook to how it was when i bought it, but I have lost the CD to re-install Microsoft Office once I have reformatted it. Is there a way I can keep Microsoft Office without the CD's to re-install it once I have restored my Mac?
-
My MacBook Pro got the nVidea flu. Because it's 4 years and 3 months Apple has not agreed to apply "Good Will" (according to Gravis store). Doesn't sound like premium customer orientation to me. Any experience with that? or better: any idea that migh
-
DB creation in Oracle 10g XE for Windows
Pls. help, I can't create a new db (CAFE). I already created the init.ora and the db creation script. But everytime I ran the said script in sql it displays this error: " Error at line 1: ORA-01501: CREATE DATABASE failed ORA-01504: database name 'CA
-
How to plot line and bar chart in one graph
i have one graph, but in this graph i want to plot line or bar chart using radio button selection. can i do that...