You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor: change appendTime to cacheBusting configuration
Changes:
- Renamed 'appendTime' boolean to 'cacheBusting' with value 'time' or false
- Updated schema to use Expect::anyOf('time', false)
- Made documentation more compact following existing style
- All tests passing (12/12)
This provides better extensibility for future cache-busting methods
while maintaining the same functionality.
Copy file name to clipboardExpand all lines: .docs/README.md
+9-61Lines changed: 9 additions & 61 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ version:
55
55
56
56
## CDN Extension
57
57
58
-
This extension adds support for CDN (Content Delivery Network) URLs in your templates. It provides both a macro `{cdn}` and a filter `|cdn` for easy asset URL management across different environments.
58
+
This extension provides CDN support with `{cdn}`macro and `|cdn`filter for managing asset URLs.
59
59
60
60
### Install
61
61
@@ -69,81 +69,29 @@ extensions:
69
69
```neon
70
70
cdn:
71
71
url: https://cdn.example.com
72
-
appendTime: false
72
+
cacheBusting: time # or false
73
73
```
74
74
75
-
**Options:**
76
-
77
-
-`url` (string, default: `''`) - Base CDN URL. Leave empty for localhost/development mode.
0 commit comments