Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

how can clear the browser cache memory using java script

Ads

 
 

Share on Google+Share on Google+

Victor
how can clear the browser cache memory using java script
2 Answer(s)      6 years and 9 months ago
Posted in : Java Server Faces Questions

how can clear the browser cache memory using java script

Ads
View Answers

December 18, 2010 at 5:52 PM


use this code in <head> block
<META HTTP-EQUIV='Pragma' CONTENT='no-cache'">
<META HTTP-EQUIV="Expires" CONTENT="-1">



January 25, 2011 at 12:04 PM


the question is how can one clear the browser cache.. and not how can one prevent page from caching...

you cannot clear cache using any client side scripting language. if there is anyway you can do it, that's a violation of standard security measures.

Regards,
Darshan Shroff


Ads









Related Tutorials/Questions & Answers:
how can clear the browser cache memory using java script
how can clear the browser cache memory using java script  how can clear the browser cache memory using java script
browser cache
browser cache  how can we clear browser cache
Advertisements
Browser Back Button Disable/Hide/Invisible using Java Script
Browser Back Button Disable/Hide/Invisible using Java Script  Dear Sir, Please Help..., Q: How to Write Code For Browser Back Button Disable/Hide/Invisible using Java Script without Page Reload/Refreshing. anyone
How can I execute a PHP script using command line?
How can I execute a PHP script using command line?  How can I execute a PHP script using command line
Clear UIWebView cache iPhone
Clear UIWebView cache iPhone  Hi, In my iPhone application ..i am using a UIWebView to load different URL on it. But i am afraid that it 's not releasing the memory. Can anyone please explain me how to load and release
How to clean a buffer using clear method in java.
How to clean a buffer using clear method in java.      ...: C:\>java ByteBufferClear Before clear method data in buffer..., we will discuss the use of clear() method. The Buffer class is a 
Script on the page used too much memory. Reload to enable script again.
Script on the page used too much memory. Reload to enable script again.  Using a java script to generate the dynamic report. If page open the full screen mode browser show the "Script on the page used too much memory. Reload
how can i make a session invalidate in java when browser is closed
how can i make a session invalidate in java when browser is closed   how can i make a session invalidate in java when browser is closed   ... same userid can not login at multiple browsers/machines. if any user is using
how can create album in java by using Stack ....
how can create album in java by using Stack ....  hi all , if i press push button put the image to the stack , and when i press pop button remove the image ..??? please help me please
how to clear dos screen in java - Java Beginners
how to clear dos screen in java   how to clear dos screen in java
How to retrieve kernal memory details(paged and non-paged ) using SIGAR API in java program
How to retrieve kernal memory details(paged and non-paged ) using SIGAR API in java program  I need to get all memory details of task manager(OS) in a java program. Physical memory details, kernal memory details and Handles
How to clear Dos screen in java? - Java Beginners
How to clear Dos screen in java?  How to clear Dos screen in java? Is there any way to clear the dos screen in windows platform just like "cls" in dos and clrscr in c,  Hi Friend, You can create a batch file
How to clear Dos screen in java? - Java Beginners
How to clear Dos screen in java?  How to clear Dos screen in java? Is there any way to clear the dos screen in windows platform just like "cls" in dos and clrscr in c
Java Get Memory
the memory size using Java programming language. This is a very simple example and you can easily learn it. In this Java Get Memory Size example, we have created.... Here is the video tutorial of "How to find memory in Java?"
Cache creation using java - Java Beginners
Cache creation using java  Hi All, I am developing a web application, I have a plan to use cache in that application. I used jsp caching.... how can I resolve my problem. Thanks in Advance mln15584
how can i achieve multiple inheritance in java without using inheritance ?
how can i achieve multiple inheritance in java without using inheritance ?  how can i achieve multiple inheritance in java without using inheritance
barcode reader using java script
barcode reader using java script  Hai all, I need code for one application in java and java script my requirement is, Scanning data directly... as if it had been typed from the keyboard. can any one help me? Regards, Divya
How i can send testing mail on my id using java?
How i can send testing mail on my id using java?  Which packages i should use to implementing java mail service??? Thanks
How to clear a float buffer in java.
How to clear a float buffer in java. In this tutorial, we will  see how to clear a float buffer in java. ByteBuffer API: The java.nio.FloatBuffer class... C:\>java FloatBufferClear Before clear method data in buffer
Without Using Form in Java Script
Without Using Form in Java Script  HOw to Reset the data in javascript without using form tag
How can i draw a line using java swings
How can i draw a line using java swings  Sir my program contains different components i am using JFrame. I want to draw a straight line between components(Jtextfeilds, Jlabels).So could you help me for it. Thank You
How can i draw a line using java swings
How can i draw a line using java swings  Sir my program contains different components i am using JFrame. I want to draw a straight line between components(Jtextfeilds, Jlabels).So could you help me for it. Thank You
How many ways we can give the output to a browser?
How many ways we can give the output to a browser?  How many ways we can give the output to a browser
How to clear int buffer in java.
How to clear int buffer in java. In this tutorial, we will discuss how to clear int buffer in java.          ... final Buffer clear() The clear() method clear the buffer. 
How can we increase the execution time of a php script?
How can we increase the execution time of a php script?  How can we increase the execution time of a php script
yum clear cache
yum clear cache In this tutorial I will tell you how you can delete the cached... the package using yum tool you can delete the packages held in cache. In this tutorial we learned how to you clean cache using yum tool
How to clear a Dos Window? - Java Beginners
How to clear a Dos Window?  problem with the following code... without exiting from the second window...I don't want to open two windows...how... Put the 'cls' command in your batch file(ab.bat) and call it by using
how to disable browser back button
how to disable browser back button  Am doing a web application in that how to disable browser back button using java script
Java Script
Java Script  What is Java Script? How to learn Java Script?   Hi Java Script is client side programming language. It runs on browser.... You can learn Java Script from our JavaScript - JavaScript Tutorial pages
Multiple buttons in struts using java script
Multiple buttons in struts using java script  Multiple buttons in struts using java script
ShortBuffer in java, Clean a short buffer by using clear method.
Clean a short buffer by using clear method. In this tutorial, we will discuss how to clean a short buffer by using clear method. ShortBuffer API...: Return type Method Description final Buffer clear