@@ -9,7 +9,8 @@ locations from.
9
9
## Versioned files and Images
10
10
11
11
` .js ` and ` .css ` files are versioned during upload using a hash of the file's
12
- contents as to allow for cache-busting.
12
+ contents as to allow for cache-busting. You can skip the automatic versioning
13
+ by using the ` -skip-versioning ` flag.
13
14
14
15
Images and other files are * not* versioned to allow for maximum caching and due
15
16
to their contents not changing very often like ` .css ` and ` .js ` files do.
@@ -31,19 +32,21 @@ Ensure your AWS credentials environment variables are set (`AWS_ACCESS_KEY_ID`,
31
32
32
33
```
33
34
$ buffer-static-upload -h
34
- Usage of buffer-static-upload:
35
+ Usage of ./ buffer-static-upload:
35
36
-bucket string
36
- the s3 bucket to upload to (default "static.buffer.com")
37
+ the s3 bucket to upload to (default "static.buffer.com")
37
38
-dir string
38
- required, the directory to upload files to in the bucket
39
+ required, the directory to upload files to in the bucket
39
40
-dry-run
40
- print the output only, skip file uploads and manifest creation
41
+ print the output only, skip file uploads and manifest creation
41
42
-files string
42
- the path to the files you'd like to upload, ex. "public/**/.*js,public/style.css"
43
+ the path to the files you'd like to upload, ex. "public/**/.*js,public/style.css"
43
44
-format string
44
- format of the output [json,csv] (default "json")
45
+ format of the output [json,csv] (default "json")
45
46
-o string
46
- the filename for the versions manifest (default "staticAssets.json")
47
+ the filename for the versions manifest (default "staticAssets.json")
48
+ -skip-versioning
49
+ skip versioning uploaded files
47
50
-v print the current buffer-static-upload version
48
51
```
49
52
0 commit comments