On Wed, Oct 25, 2006 at 07:55:09PM +1000, Alexander Samad
wrote:
> On Wed, Oct 25, 2006 at 12:44:19PM +0300, Janne
Jalkanen wrote:
> > > > Also, which URL provider are you using?
> > > using shortview
> >
> > Figures. Because it does not have a parameter
string, the proxy will
> > probably keep it in the cache for a while, until
it is refreshed,
> > because it can't know it has changed.
> >
> > A temporary solution is to modify Wiki.jsp to
include the relevant
> > cache-control headers... But HTTP caching is a
big mystery to me in
> > general, so if anyone has any practical advice,
that would be a great
> > help...
>
>
> I think what we should be presenting is the last
modified date time of
> the file, which corresponds to a http header option,
the proxy should
> acknowledge this
>
> http://mirrors.web
thing.com/view=Medium-Framed/www.w3.org/Protocols/rfc2616/rf
c2616-sec14.html
I found another interesting page on caching and http header
v's html
pragma (http://www.mnot.net/c
ache_docs/), basically it is advocating
http headers as some/most proxy doesn't look at or follow
html pragma
statements.
Looks like the 2 to use are
Last-Modified = "Last-Modified" ":"
HTTP-date, which could corrolate to
the last modified attribute of the document has to be GMT
referenced i
think
14.19 ETag
The ETag response-header field provides the current value of
the entity
tag for the requested variant. The headers used with entity
tags are
described in sections 14.24, 14.26 and 14.44. The entity tag
MAY be used
for comparison with other entities from the same resource
(see section
13.3.3).
ETag = "ETag" ":" entity-tag
ETag could cold the revision number of the document
These identifiers seem to have everthing that is needed.
something like
### Eclipse Workspace Patch 1.0
#P JSPWiki
Index: src/webdocs/Wiki.jsp
============================================================
=======
RCS file: /p/cvs/JSPWiki/src/webdocs/Wiki.jsp,v
retrieving revision 1.64
diff -u -r1.64 Wiki.jsp
--- src/webdocs/Wiki.jsp 29 Jul 2006 19:27:18 -0000
1.64
+++ src/webdocs/Wiki.jsp 25 Oct 2006 23:30:29 -0000
 -31,6
+31,8 
sw.start();
// Set the content type and include the response
content
+
response.addHeader("Last-Modified","");
+ response.addHeader("ETag","");
response.setContentType("text/html;
charset="+wiki.getContentEncoding() );
String contentPage = wiki.getTemplateManager().findJSP(
pageContext,
wikiContext.getTemplate(),
haven't looked into jspwiki enough to know where I can get
document last
modified or document version.
Alex
>
>
> >
> > /Janne
> >
> > _______________________________________________
> > Jspwiki-users mailing list
> > Jspwiki-users ecyrd.com
> > http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
a>
> >
> _______________________________________________
> Jspwiki-users mailing list
> Jspwiki-users ecyrd.com
> http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
a>
_______________________________________________
Jspwiki-users mailing list
Jspwiki-users ecyrd.com
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
a>
|