Is there a way to add the current timestamp as query parameters? I think it could be useful to avoid any cache issue.
Originally Asked here - https://twitter.com/tcoppin_/status/1209131288965341190
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
rq_rand(X) as a predefined function which can be used to add a random number with X number of digits when you do a URL rewrite.
Modify QueryParams Rule like this -
Note - If you add cache buster to all URLs, it might make your browsing a bit slow so you can add additional filters if you intend to add cache buster query param to only particular resources
Here's an example of setting up filters for matching a Rule
This can be really helpful in web development to avoid caching especially when using webpack bundles.