Intercept and cache POST requests made by web app

I wonder if it is possible to 1) intercept post requests made by a website and 2) respond by it’s cached response?