2
0
Fork 0
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:
Geert Bevin 2023-01-02 11:53:00 -05:00
parent 025459c37e
commit 176e5eaadc

View file

@ -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