Replace Rules enables changes in a URL on the fly using pattern matching for testing and debugging purposes. This feature is particularly useful for developers testing the web page behavior under different conditions without altering the codebase directly. Requests are matched with source condition, find and replace are performed on those requests by redirecting to the resulting URL.
00:10 How to Create HTTP Rules in Requestly
01:00 Use-Case: How to replace the minified version of JS with non-minified
01:51 Use-Case: How to load staging APIs on production front-end service
02:27 Use-Case: How to test a different version of API on Production
Use Cases
---
Debug with a non-minified version of a script on the prod: Debugging a prod site with minified versions of JS is difficult. Using the replace rule we can load a non-minified version of the JS to debug faster.
Load staging APIs on production front-end service: Before shipping a bug fix or a feature, its better to check it against production data. By using replace rule we can test staging APIs with Production.
Test a different version of API on Production/Staging: Using similar steps as above we can even change the version of APIs on a production website.
Important Links
---
Download Chrome Extension - https://requestly.io/downloads/
Tutorial - https://requestly.io/blog/replace-rule/
Documentation - https://developers.requestly.io/http-...