Permalink
Browse files

update.

  • Loading branch information...
1 parent a0146d2 commit 7df9f2d0c2585e7dd2d9b0a39a15b017ebde9b96 Kazuhiro Kotsutsumi committed Apr 25, 2012
Showing with 2 additions and 7 deletions.
  1. +2 −7 lib/ext-server/server/view/View.js
  2. BIN test/shared/manual/public/.DS_Store
@@ -553,12 +553,6 @@ Ext.define('Ext.server.view.View', {
"ETag" : me.etag(stat)
};
- /*
- if(!res.getHeader('Last-Modified')) {
- res.setHeader('Last-Modified', stat.mtime.toUTCString());
- }
- */
-
// テンプレート処理
if(me.isTemplate()) {
@@ -571,7 +565,8 @@ Ext.define('Ext.server.view.View', {
res.setHeader('Content-Length', stat.size);
- var maxAge = 0;
+ var maxAge = 0; // 設定できるようにする?
+
if(!res.getHeader('Cache-Control')) {
res.setHeader('Cache-Control', 'public, max-age=' + (maxAge / 1000));
}
Binary file not shown.

0 comments on commit 7df9f2d

Please sign in to comment.