repo.or.cz
/
gitter.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Gitter migration: Setup redirects (rollout pt. 3)
[gitter.git]
/
server
/
web
/
middlewares
/
ie6-post-caching.js
blob
3b35e64516537b77e95f344bc0eadeb2a745aba9
1
'use strict';
2
3
module.exports = function(req, res, next) {
4
if (
5
req.method === 'POST' ||
6
req.method === 'PUT' ||
7
req.method === 'DELETE' ||
8
req.method === 'PATCH'
9
) {
10
res.set('Cache-Control', 'no-cache');
11
}
12
next();
13
};