|
@@ -131,6 +131,21 @@ module.exports = {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ // Match any same-origin request that contains 'api'.
|
|
|
|
+ // 产品名称有可能每分钟都更新
|
|
|
|
+ urlPattern: /\/api\/ecs_oe_student\/examScore\/queryObjectiveScoreList\?examStudentId=/,
|
|
|
|
+ handler: "cacheFirst",
|
|
|
|
+ options: {
|
|
|
|
+ cacheableResponse: {
|
|
|
|
+ statuses: [0, 200],
|
|
|
|
+ },
|
|
|
|
+ cacheName: "objective-score-list-cache",
|
|
|
|
+ expiration: {
|
|
|
|
+ maxAgeSeconds: 10 * 60,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ },
|
|
],
|
|
],
|
|
},
|
|
},
|
|
},
|
|
},
|