switch.js 308 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 module.exports = { index(req, res) { // 千万别缓存 res.set({ 'Cache-Control': 'no-cache', Pragma: 'no-cache', Expires: (new Date(1900, 0, 1, 0, 0, 0, 0)).toUTCString() }); res.jsonp({ usePwa: true }); } };