make extra-sure game pages and tournament pages are not cached

even by back/next browser buttons,
as to avoid out of sync clocks
This commit is contained in:
Thibault Duplessis 2015-11-10 23:52:50 +07:00
parent ecd283e939
commit 616fec4da2

View file

@ -39,7 +39,7 @@ private[controllers] trait LilaController
implicit def lang(implicit req: RequestHeader) = Env.i18n.pool lang req
protected def NoCache(res: Result): Result = res.withHeaders(
CACHE_CONTROL -> "no-cache", PRAGMA -> "no-cache"
CACHE_CONTROL -> "no-cache, no-store, must-revalidate", EXPIRES -> "0"
)
protected def Socket[A: FrameFormatter](f: Context => Fu[(Iteratee[A, _], Enumerator[A])]) =