mirror of
https://github.com/201206030/novel.git
synced 2025-04-27 07:30:50 +00:00
增加本地图片缓存
This commit is contained in:
parent
e5f96bbabf
commit
f81a318421
@ -61,6 +61,7 @@ public class BookFilter implements Filter {
|
||||
|
||||
//本地图片
|
||||
if (requestUri.contains(Constants.LOCAL_PIC_PREFIX)) {
|
||||
resp.setDateHeader("expires", System.currentTimeMillis()+60*60*24*10*1000);//缓存10天
|
||||
OutputStream out = resp.getOutputStream();
|
||||
InputStream input = new FileInputStream(new File(picSavePath + requestUri));
|
||||
byte[] b = new byte[4096];
|
||||
|
Loading…
x
Reference in New Issue
Block a user