|
@@ -94,14 +94,33 @@ module.exports = {
|
|
|
},
|
|
|
{
|
|
|
|
|
|
-
|
|
|
+
|
|
|
urlPattern: /\/api\/ecs_core\/org\/propertyNoSession\/OE_STUDENT_SYS_NAME\?domainName=/,
|
|
|
- handler: "staleWhileRevalidate",
|
|
|
+ handler: "cacheFirst",
|
|
|
+ options: {
|
|
|
+ cacheableResponse: {
|
|
|
+ statuses: [0, 200],
|
|
|
+ },
|
|
|
+ cacheName: "sys-name-cache",
|
|
|
+ expiration: {
|
|
|
+ maxAgeSeconds: 60,
|
|
|
+ },
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
|
|
|
+
|
|
|
urlPattern: /\/api\/ecs_core\/org\/logo\?domain=/,
|
|
|
- handler: "staleWhileRevalidate",
|
|
|
+ handler: "cacheFirst",
|
|
|
+ options: {
|
|
|
+ cacheableResponse: {
|
|
|
+ statuses: [0, 200],
|
|
|
+ },
|
|
|
+ cacheName: "logo-cache",
|
|
|
+ expiration: {
|
|
|
+ maxAgeSeconds: 24 * 60 * 60,
|
|
|
+ },
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
urlPattern: /\/models\/.*\.json/,
|