From c3e34077afefdfe7e4a638c882a2e4a11120b996 Mon Sep 17 00:00:00 2001 From: Adam van Vliet Date: Mon, 10 Oct 2016 09:51:30 +1000 Subject: [PATCH] Skip cache on POST. --- ProjectNamiBlobCache/CacheFrontEnd.vb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ProjectNamiBlobCache/CacheFrontEnd.vb b/ProjectNamiBlobCache/CacheFrontEnd.vb index 037437c..3865d1a 100644 --- a/ProjectNamiBlobCache/CacheFrontEnd.vb +++ b/ProjectNamiBlobCache/CacheFrontEnd.vb @@ -46,6 +46,11 @@ Public Class CacheFrontEnd End If End If + 'Test for POST + If app.Context.Request.HttpMethod.Equals("POST") Then + Exit Sub + End If + 'Test for Not Cached If IsNotCached(app.Context.Request.Url.ToString.ToLower) Then Exit Sub