vite-plugin-deploy-oss 0.0.9 → 0.0.10

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/index.d.mts CHANGED
@@ -14,7 +14,6 @@ type vitePluginDeployOssOption = oss.Options & {
14
14
  autoDelete?: boolean;
15
15
  skip?: string | string[];
16
16
  open?: boolean;
17
- isCache?: boolean;
18
17
  };
19
18
  declare function vitePluginDeployOss(option: vitePluginDeployOssOption): Plugin;
20
19
 
package/dist/index.d.ts CHANGED
@@ -14,7 +14,6 @@ type vitePluginDeployOssOption = oss.Options & {
14
14
  autoDelete?: boolean;
15
15
  skip?: string | string[];
16
16
  open?: boolean;
17
- isCache?: boolean;
18
17
  };
19
18
  declare function vitePluginDeployOss(option: vitePluginDeployOssOption): Plugin;
20
19
 
package/dist/index.js CHANGED
@@ -54,7 +54,6 @@ function vitePluginDeployOss(option) {
54
54
  autoDelete = false,
55
55
  alias,
56
56
  open = true,
57
- isCache = false,
58
57
  ...props
59
58
  } = option || {};
60
59
  let upload = false;
@@ -96,7 +95,7 @@ function vitePluginDeployOss(option) {
96
95
  headers: {
97
96
  "x-oss-storage-class": "Standard",
98
97
  "x-oss-object-acl": "default",
99
- ...isCache && { "Cache-Control": "no-cache" },
98
+ "Cache-Control": "public, max-age=31536000, immutable",
100
99
  ...overwrite && {
101
100
  "x-oss-forbid-overwrite": "false"
102
101
  }
package/dist/index.mjs CHANGED
@@ -20,7 +20,6 @@ function vitePluginDeployOss(option) {
20
20
  autoDelete = false,
21
21
  alias,
22
22
  open = true,
23
- isCache = false,
24
23
  ...props
25
24
  } = option || {};
26
25
  let upload = false;
@@ -62,7 +61,7 @@ function vitePluginDeployOss(option) {
62
61
  headers: {
63
62
  "x-oss-storage-class": "Standard",
64
63
  "x-oss-object-acl": "default",
65
- ...isCache && { "Cache-Control": "no-cache" },
64
+ "Cache-Control": "public, max-age=31536000, immutable",
66
65
  ...overwrite && {
67
66
  "x-oss-forbid-overwrite": "false"
68
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-deploy-oss",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",