那个那什么,
我用的是spring mvc ,现在有个需求,我要用到oscache缓存整个url,就是用com.opensymphony.oscache.web.filter.CacheFilter拦截url进行整个页面的缓存,我确定我的所有基本配置都是正确的,但我缓存一个spring3mvc的url get请求,却无法实现,
比如这个链接
topic/get.htm?userid=100
他就是无法实现,
以下是log4j打出的信息:
[code="java"]
2012-07-24 12:22:25:511[INFO]: OSCache: filter in scope 4
2012-07-24 12:22:25:511[DEBUG]: OSCache: the request is cachable.
2012-07-24 12:22:25:512[DEBUG]: get called (key=/springmvc/topic/get.htm_GET__2JNYe3uZbn5sO4KyW0KmlA==)
2012-07-24 12:22:25:512[INFO]: OSCache: New cache entry, cache stale or cache scope flushed for /springmvc/topic/get.htm_GET__2JNYe3uZbn5sO4KyW0KmlA==
2012-07-24 12:22:25:514[DEBUG]: header: Pragma: no-cache
2012-07-24 12:22:25:514[DEBUG]: dateheader: Expires: 1
2012-07-24 12:22:25:514[DEBUG]: header: Cache-Control: no-cache
2012-07-24 12:22:25:514[DEBUG]: header: Cache-Control: no-store
2012-07-24 12:22:25:525[INFO]: CacheHttpServletResponseWrapper:resetBuffer()
2012-07-24 12:22:25:528[DEBUG]: ContentType: text/html; charset=utf-8
2012-07-24 12:22:25:531[DEBUG]: OSCache: the response is cachable.
2012-07-24 12:22:25:532[DEBUG]: get called (key=/springmvc/topic/get.htm_GET__2JNYe3uZbn5sO4KyW0KmlA==)
2012-07-24 12:22:25:532[DEBUG]: persistStore called (key=/springmvc/topic/get.htm_GET__2JNYe3uZbn5sO4KyW0KmlA==)
2012-07-24 12:22:25:532[INFO]: OSCache: New entry added to the cache with key /springmvc/topic/get.htm_GET__2JNYe3uZbn5sO4KyW0KmlA==
[/code]
我不知道是谁调用了CacheHttpServletResponseWrapper:resetBuffer()
我jsp模板页面没有加
为什么他要处理这句header: Cache-Control: no-cache
请各位老师帮忙,我受不了了