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?