Explorar o código

Merge branch 'dev/v4.8.47_fuwencai' of qmx/jy into feature/v4.8.47

wangshan %!s(int64=2) %!d(string=hai) anos
pai
achega
e3c63581f9
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/jfw/modules/app/src/app/front/tags.go

+ 4 - 0
src/jfw/modules/app/src/app/front/tags.go

@@ -67,6 +67,10 @@ func init() {
 
 func (tg *Tags) TagsIndex(types, name string) error {
 	defer qu.Catch()
+	//禁用页面缓存
+	tg.ResponseWriter.Header().Set("Cache-Control", "no-cache,no-store,must-revalidate")
+	tg.ResponseWriter.Header().Set("Prama", "no-cache")
+	tg.ResponseWriter.Header().Set("Expires", "0")
 	if userId, _ := tg.GetSession("userId").(string); userId != "" {
 		return tg.Redirect("/jy_mobile/tabbar/home")
 	}