@@ -38,15 +38,15 @@ Optionally, you can configure the plugin to suit your project's needs.
38
38
package = " netlify-plugin-11ty"
39
39
[plugins .inputs ]
40
40
cache_img = ' ./img'
41
- cache_img_httpHeader = true
41
+ cache_img_httpHeader = false
42
42
43
43
cache_assets = ' ../.cache'
44
44
cache_other = []
45
45
```
46
46
47
47
The following ` inputs ` options are available:
48
48
49
- ### ` cache_img `
49
+ ### 1. ` cache_img `
50
50
** Type** : ` String ` or ` Array of Strings `
51
51
** Default** : ` './img' ` (relative to the publish
52
52
directory)
@@ -57,19 +57,23 @@ relative to the publish directory. Can be a String or an array of Strings.
57
57
If set to ` false ` , files generated by ` @11ty/eleventy-img ` are not saved in
58
58
Netlify cache.
59
59
60
- ### ` cache_img_httpHeader `
60
+ ### 2. ` cache_img_httpHeader `
61
61
62
62
** Type** : ` Boolean `
63
- ** Default** : ` true `
63
+ ** Default** : ` false `
64
64
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
66
66
http header ` cache-control: public, max-age=31536000, immutable ` .
67
67
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
69
69
[ 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.
71
72
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 `
73
77
74
78
** Type** : ` String ` or ` Array of Strings `
75
79
** Default** : ` '../.cache' ` (relative to the
@@ -82,7 +86,7 @@ Strings.
82
86
If set to ` false ` , assets fetched by ` @11ty/eleventy-cache-assets ` are not saved
83
87
in Netlify cache.
84
88
85
- ### ` cache_other `
89
+ ### 4. ` cache_other `
86
90
87
91
** Type** : ` String ` or ` Array of Strings `
88
92
** Default** : ` [] ` (relative to the publish
0 commit comments