@yumerijs/core 2.0.10 → 2.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/session.js +3 -2
- package/package.json +1 -1
package/dist/session.js
CHANGED
|
@@ -300,7 +300,7 @@ class Session {
|
|
|
300
300
|
if (option.cacheControl !== undefined)
|
|
301
301
|
control.push(option.cacheControl);
|
|
302
302
|
if (option.maxAge !== undefined)
|
|
303
|
-
control.push
|
|
303
|
+
control.push(`max-age=${option.maxAge}`);
|
|
304
304
|
if (option.smaxAge !== undefined)
|
|
305
305
|
control.push(`s-maxage=${option.smaxAge}`);
|
|
306
306
|
if (option.isImmutable)
|
|
@@ -350,7 +350,8 @@ class Session {
|
|
|
350
350
|
modified: fs_1.default.statSync(path).mtime,
|
|
351
351
|
etag,
|
|
352
352
|
maxAge: option.maxAge,
|
|
353
|
-
smaxAge: option.smaxAge
|
|
353
|
+
smaxAge: option.smaxAge,
|
|
354
|
+
cacheControl: 'public'
|
|
354
355
|
});
|
|
355
356
|
this.body = fs_1.default.readFileSync(path, 'utf-8');
|
|
356
357
|
}
|