Merge branch 'hotfix/noCacheXMLHttpRequest' into qCloud
Showing
4 changed files
with
15 additions
and
3 deletions
@@ -100,6 +100,14 @@ try { | @@ -100,6 +100,14 @@ try { | ||
100 | app.use(devtools()); | 100 | app.use(devtools()); |
101 | } | 101 | } |
102 | 102 | ||
103 | + // set no cache | ||
104 | + app.use((req, res, next) => { | ||
105 | + if (req.get('X-Requested-With') === 'XMLHttpRequest') { | ||
106 | + res.set('Cache-Control', 'no-cache'); | ||
107 | + } | ||
108 | + next(); | ||
109 | + }); | ||
110 | + | ||
103 | require('./dispatch')(app); | 111 | require('./dispatch')(app); |
104 | 112 | ||
105 | app.all('*', errorHanlder.notFound()); // 404 | 113 | app.all('*', errorHanlder.notFound()); // 404 |
@@ -70,6 +70,10 @@ | @@ -70,6 +70,10 @@ | ||
70 | <input class="query-param" type="hidden" data-attr="productPool" value="{{productPool}}"> | 70 | <input class="query-param" type="hidden" data-attr="productPool" value="{{productPool}}"> |
71 | {{/if}} | 71 | {{/if}} |
72 | 72 | ||
73 | +{{#if filter_poolId}} | ||
74 | + <input class="query-param" type="hidden" data-attr="filter_poolId" value="{{filter_poolId}}"> | ||
75 | +{{/if}} | ||
76 | + | ||
73 | {{#if saleType}} | 77 | {{#if saleType}} |
74 | <input class="query-param" type="hidden" data-attr="saleType" value="{{saleType}}"> | 78 | <input class="query-param" type="hidden" data-attr="saleType" value="{{saleType}}"> |
75 | {{/if}} | 79 | {{/if}} |
@@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
7 | <li> | 7 | <li> |
8 | <a href="{{url}}"> | 8 | <a href="{{url}}"> |
9 | <div class="img-box"> | 9 | <div class="img-box"> |
10 | - <img class="lazy" data-original="{{image src 180 320}}" alt=""> | 10 | + <img class="lazy" data-original="{{image src 320 154}}" alt=""> |
11 | </div> | 11 | </div> |
12 | </a> | 12 | </a> |
13 | </li> | 13 | </li> |
-
Please register or login to post a comment