From: Mattison W. <mat...@ne...> - 2011-11-21 16:40:07
|
The TB2 requests resolve to requests with querystrings such as /treebase-web/search/downloadAStudy.html?id=1925&format=nexml This results in this error on Apache "cache: /treebase-web/search/studySearch.html?query=prism.publicationName=Nature&format=null&recordSchema=null not cached. Reason: Query string present but no explicit expiration time" Mod_cache will not work with querystrings from Tomcat until an expire time is explicitly set within your application. Here are three articles I found with suggestions on how to do that. http://raibledesigns.com/rd/entry/adding_expires_headers_with_oscache (download now http://java.net/downloads/oscache/OSCache%202.4.1/oscache-2.4.1.jar) http://www.tomred.net/java-tomcat-set-expires-headers.html http://juliusdev.blogspot.com/2008/06/tomcat-add-expires-header.html -Mattison On Thu, Nov 17, 2011 at 11:14 AM, William Piel <wil...@ya...>wrote: > > On Nov 17, 2011, at 10:02 AM, William Piel wrote: > > > Therefore, if you also know of an Apache plugin that will cache results > for "/phylows/study/TB2:", that would greatly help. > > Looking at mod_cache, I wonder if this would work: > > cacheRoot c:/cacheroot > cacheEnable disk /treebase-web/phylows/study/TB2: > cacheDirLevels 1 > cacheDirLength 20 > cacheMinFileSize 1 > cacheMaxFileSize 50000000 > cacheIgnorecacheControl Off > cacheIgnoreNoLastMod On > cacheMaxExpire 2592000 > > ... resulting in a one-month cache on all TB2 objects. What's unclear to > me is whether the cacheEnable string allows substrings or whether it needs > to end in "/". If that's a limitation, are there third-party plugins that > can cache using wildcards? > > bp > > > > > -- Mattison Ward NESCent at Duke University 2024 W. Main Street, Suite A200 Durham, NC 27705-4667 919-668-4585 (desk) 919-668-4551 (alternate) 919-668-9198 (fax) |