From 96c6e7f780e1ba4520cfcc7e497f9fd92dc07d07 Mon Sep 17 00:00:00 2001 From: public_host Date: Tue, 25 Aug 2020 14:09:12 +0800 Subject: [PATCH] fix --- govue/govue.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/govue/govue.go b/govue/govue.go index 8eec534..34411c4 100644 --- a/govue/govue.go +++ b/govue/govue.go @@ -198,6 +198,13 @@ func (gv *GoVue) LoadStaticResources(request *http.Request, goExtDataS ...interf } result, err = ioutil.ReadFile(filePath) + + govueDebug := request.URL.Query().Get("govue_debug") + + if govueDebug != "1" { + return + } + if err != nil { result, err = gv.renderErrPage(404, request, goExtDataS...) if gv.CacheSec > 0 {