Re: Caching Static Items

Anthony Eden <[email protected]> Fri, 28 Feb 2003 13:30:54 -0500
Newsgroups gmane.comp.java.jpublish.devel
Message-ID <[email protected]>
Thanks to Florian's suggestion the performance of JPublish apps serving static content is dramatically improved in the current code in the CVS.  This is why I *love* open source software - it rocks when the community contributes!  So what I have done is add a getLastModified(String path) method to the StaticResourceManager interface and placed this value in the Last-Modified HTTP header for static resources.  This means that images and other static content should be properly cached by the web browser now.

I have one question: is their really a performance boost by using your own byte array buffer when reading data versus using a BufferedInputStream?

Sincerely,
Anthony Eden



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf