mirror of
https://github.com/ethauvin/rife2.git
synced 2025-05-01 02:58:12 -07:00
Added max-age 0 in prevent caching helper
This commit is contained in:
parent
025459c37e
commit
176e5eaadc
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ public final class ServletUtils {
|
|||
}
|
||||
|
||||
public static void preventCaching(Response response) {
|
||||
response.addHeader("Cache-Control", "max-age=0"); // HTTP/1.0
|
||||
response.addHeader("Cache-Control", "no-cache"); // HTTP/1.1
|
||||
response.addHeader("Cache-Control", "no-store"); // HTTP/1.1
|
||||
response.addHeader("Cache-Control", "must-revalidate"); // HTTP/1.1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue