This commit is contained in:
Bjørn Erik Pedersen 2024-02-19 18:59:28 +01:00
commit e8cc785a58
No known key found for this signature in database
8 changed files with 150 additions and 28 deletions

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