This commit is contained in:
Rosano authored and GitHub committed 2024-02-11 11:43:11 -08:00
1 parent 2da1198ac6
commit 94f2a36081
1 file changed
+1 -1
+1 -1
View File
@@ -171,7 +171,7 @@ Override the cache key by setting a `key` in the options map. Use this approach
```go-html-template
{{ $url := "https://example.org/images/a.jpg" }}
{{ $cacheKey := print $url (now.Format "2006-01-02") }}
{{ $resource := resource.GetRemote $url (dict "key" $cacheKey) }}
{{ $resource := resources.GetRemote $url (dict "key" $cacheKey) }}
```
[configure file caches]: /getting-started/configuration/#configure-file-caches