vite-plugin-deploy-oss 0.0.11 → 0.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/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -54,6 +54,7 @@ function vitePluginDeployOss(option) {
|
|
|
54
54
|
autoDelete = false,
|
|
55
55
|
alias,
|
|
56
56
|
open = true,
|
|
57
|
+
noCache = false,
|
|
57
58
|
...props
|
|
58
59
|
} = option || {};
|
|
59
60
|
let upload = false;
|
|
@@ -95,7 +96,7 @@ function vitePluginDeployOss(option) {
|
|
|
95
96
|
headers: {
|
|
96
97
|
"x-oss-storage-class": "Standard",
|
|
97
98
|
"x-oss-object-acl": "default",
|
|
98
|
-
"Cache-Control": "public, max-age=3600, immutable",
|
|
99
|
+
"Cache-Control": noCache ? "no-cache" : "public, max-age=3600, immutable",
|
|
99
100
|
...overwrite && {
|
|
100
101
|
"x-oss-forbid-overwrite": "false"
|
|
101
102
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -20,6 +20,7 @@ function vitePluginDeployOss(option) {
|
|
|
20
20
|
autoDelete = false,
|
|
21
21
|
alias,
|
|
22
22
|
open = true,
|
|
23
|
+
noCache = false,
|
|
23
24
|
...props
|
|
24
25
|
} = option || {};
|
|
25
26
|
let upload = false;
|
|
@@ -61,7 +62,7 @@ function vitePluginDeployOss(option) {
|
|
|
61
62
|
headers: {
|
|
62
63
|
"x-oss-storage-class": "Standard",
|
|
63
64
|
"x-oss-object-acl": "default",
|
|
64
|
-
"Cache-Control": "public, max-age=3600, immutable",
|
|
65
|
+
"Cache-Control": noCache ? "no-cache" : "public, max-age=3600, immutable",
|
|
65
66
|
...overwrite && {
|
|
66
67
|
"x-oss-forbid-overwrite": "false"
|
|
67
68
|
}
|