So when I'm locally testing things such as Ajax in apps I'm writing, I often like to add a delay in server side scripts using a sleep
statement. It helps simulate slow connections etc.
Is there a way to specify a similar delay behaviour directly in Nginx config that would work for the flat HTML files it's serving?
I'm aware you can do a similar delay simulation at the network level (see here) but it seems pretty messy and has never worked very well for me.