@yumerijs/core 2.0.11 → 2.0.13

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.
Files changed (2) hide show
  1. package/dist/session.js +2 -2
  2. package/package.json +1 -1
package/dist/session.js CHANGED
@@ -293,14 +293,14 @@ class Session {
293
293
  */
294
294
  setCache(option) {
295
295
  if (option.etag)
296
- this.head['ETag'] = `"${option.etag}"`;
296
+ this.head['ETag'] = `${option.etag}`;
297
297
  if (option.modified)
298
298
  this.head['Last-Modified'] = option.modified.toUTCString();
299
299
  let control = [];
300
300
  if (option.cacheControl !== undefined)
301
301
  control.push(option.cacheControl);
302
302
  if (option.maxAge !== undefined)
303
- control.push[`max-age=${option.maxAge}`];
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yumerijs/core",
3
- "version": "2.0.11",
3
+ "version": "2.0.13",
4
4
  "description": "Core module for yumeri",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",