Skip to content

Commit 3aefb33

Browse files
committed
v1.1.0
1 parent 445cde9 commit 3aefb33

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

README.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ Optionally, you can configure the plugin to suit your project's needs.
3838
package = "netlify-plugin-11ty"
3939
[plugins.inputs]
4040
cache_img = './img'
41-
cache_img_httpHeader = true
41+
cache_img_httpHeader = false
4242

4343
cache_assets = '../.cache'
4444
cache_other = []
4545
```
4646

4747
The following `inputs` options are available:
4848

49-
### `cache_img`
49+
### 1. `cache_img`
5050
**Type**: `String` or `Array of Strings`
5151
**Default**: `'./img'` (relative to the publish
5252
directory)
@@ -57,19 +57,23 @@ relative to the publish directory. Can be a String or an array of Strings.
5757
If set to `false`, files generated by `@11ty/eleventy-img` are not saved in
5858
Netlify cache.
5959

60-
### `cache_img_httpHeader`
60+
### 2. `cache_img_httpHeader`
6161

6262
**Type**: `Boolean`
63-
**Default**: `true`
63+
**Default**: `false`
6464

65-
If set to `true`, a files generated by `@11ty/eleventy-img` will be served with
65+
If set to `true`, files generated by `@11ty/eleventy-img` will be served with
6666
http header `cache-control: public, max-age=31536000, immutable`.
6767

68-
Files generated by eleventy_img have a hash calculated using file content and
68+
Files generated by `eleventy_img` have a hash calculated using file content and
6969
[Sharp plugin options](https://www.11ty.dev/docs/plugins/image/#advanced-control-of-sharp-image-processor)
70-
in their name, so you can cache them indefinitely.
70+
in their name by default ([starting from #116](https://github.com/11ty/eleventy-img/pull/116)),
71+
so you can cache them indefinitely.
7172

72-
### `cache_assets`
73+
If you are using [custom filenames](https://www.11ty.dev/docs/plugins/image/#custom-filenames-new-in-image-0.4.0)
74+
that don't include a hash, this option should be left `false` (default).
75+
76+
### 3. `cache_assets`
7377

7478
**Type**: `String` or `Array of Strings`
7579
**Default**: `'../.cache'` (relative to the
@@ -82,7 +86,7 @@ Strings.
8286
If set to `false`, assets fetched by `@11ty/eleventy-cache-assets` are not saved
8387
in Netlify cache.
8488

85-
### `cache_other`
89+
### 4. `cache_other`
8690

8791
**Type**: `String` or `Array of Strings`
8892
**Default**: `[]` (relative to the publish

manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ inputs:
66

77
- name: cache_img_httpHeader
88
description: 'Add immutable cache http headers'
9-
default: true
9+
default: false
1010

1111
- name: cache_assets
1212
description: '11ty Assets plugin cache directory'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "netlify-plugin-11ty",
3-
"version": "1.0.1",
3+
"version": "1.1.0",
44
"description": "A plugin to make building with Eleventy and Netlify a joy!",
55
"publishConfig": {
66
"access": "public"

0 commit comments

Comments
 (0)