Browse Source

feat:更新缓存

wangshan 2 years ago
parent
commit
602bb456fa

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

@@ -54,10 +54,6 @@ func (s *Search) Site() error {
 
 func (s *Search) MainSearch() error {
 	if userId, _ := s.GetSession("userId").(string); userId == "" {
-		//禁用页面缓存
-		s.ResponseWriter.Header().Set("Cache-Control", "no-cache,no-store,must-revalidate")
-		s.ResponseWriter.Header().Set("Prama", "no-cache")
-		s.ResponseWriter.Header().Set("Expires", "0")
 		return s.Redirect("/jyapp/tags/home/home.html")
 	}
 	return s.Redirect("/jy_mobile/tabbar/home")

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

@@ -67,10 +67,6 @@ 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")
 	}