HYLODE / HyUi

HYLODE User Interface Repository
http://hylode.org/
Apache License 2.0
3 stars 2 forks source link

Update varnish config to skip cache for POST requests #216

Closed harryjmoss closed 1 year ago

harryjmoss commented 1 year ago

Closes #214

Solution derived from https://serverfault.com/questions/563560/varnish-transforming-post-to-get

harryjmoss commented 1 year ago

Tested on staging_blue on GAE08 with curl -I -X POST 'http://cache:8000/baserow/discharge_status/?csn=999999999&status=discharge' - returns HTTP 200

docsteveharris commented 1 year ago

Thanks @harry. I can't see staging_blue to check but the previous version also returned HTTP 200 even though the post wasn't getting through.

docsteveharris commented 1 year ago

just pulled down this branch and checked. all works! thank you