Skip to content

Commit

Permalink
VERSION 0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
freedomkk-qfeng committed Feb 29, 2020
1 parent 510e00c commit de433d9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
10 changes: 3 additions & 7 deletions controller/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,8 @@ func CORS() gin.HandlerFunc {

func NoCache() gin.HandlerFunc {
return func(context *gin.Context) {
context.Writer.Header().Add("Cache-Control", "no-cache")

if context.Request.Method == "OPTIONS" {
context.AbortWithStatus(200)
} else {
context.Next()
}
context.Writer.Header().Add("Cache-Control", "no-store")
context.Writer.Header().Add("Pragma", "no-cache")
context.Next()
}
}
2 changes: 1 addition & 1 deletion g/const.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package g

const (
VERSION = "0.2.2"
VERSION = "0.2.3"
SALT = "ba6bb05c50e03f6b5ab54a2b7914800d"
)

Expand Down
2 changes: 1 addition & 1 deletion template/logout.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta http-equiv="Cache-control" content="no-cache" />
<meta http-equiv="Cache" content="no-cache" />
<title>
收银台
上海市教育认证中心
</title>
<style type="text/css">
html, body, .wrapper { color: #4d4b4b; font-family:'MicrosoftYahei'; }
Expand Down

0 comments on commit de433d9

Please sign in to comment.