File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes about browser  cache Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "about browser  cache" Watch "about browser  cache" New topic
Author

about browser cache

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Hi Bear,
i saw in your JSP FAQ something like below.... it is new to me..
-------------------------------------------------------------------

<meta http-equiv="Expires" content="Sat, 01 Dec 2001 00:00:00 GMT">--->1

-------------------------------------------------------------------

usally i used to write like below
----------------------------------------------------
<meta http-equiv="Expires" content=0>--->2
---------------------------------------------------what is the difference between 1 and 2
[ September 21, 2008: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56162
    
  13

Well, it's not my JSP FAQ. The JSP FAQ has been contributed to by many members.

Originally posted by seetharaman venkatasamy:
what is the difference between 1 and 2
One is valid and the other is not.

The invalid value seems to work because all invalid values cause the resource to be considered expired. But this is a side effect and it's bad form to use invalid values to take advantage of a side effect. Better to be explicit and correct.
[ September 21, 2008: Message edited by: Bear Bibeault ]

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Thank you so much Bear
 
I agree. Here's the link: jrebel
 
subject: about browser cache
 
Similar Threads
Question on NOT Cache....
catch -[killing my brain cells]-
Page has not Refreshed
Jasper Report in Struts JSP
making pages sensetive in struts