0

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

0

Requestly supports 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.

For example - Suppose you want to add a random number to all Javascript URLs matching www.example.com, you can set up a Modify QueryParams Rule like this -

enter image description here

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

enter image description here

This can be really helpful in web development to avoid caching especially when using webpack bundles.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.