How to write if-else like condition

hi, is there any way for if-else like condition or better alternate way to write this below condition

@cache not path /index.html /version.json
@not-cache path /index.html /version.json
header @cache Cache-Control "public, max-age=31536000, immutable"
header @not-cache Cache-Control "no-cache"


You can use handle blocks, which are mutually exclusive (only the first matching handle will be evaluated).

Otherwise that works too!

This article explains:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.