I didn't set cache-control
in anywhere in my code , and wondering why there is the still the cache-control
shown in my response header?
Asked
Active
Viewed 83 times
0

Blake
- 7,367
- 19
- 54
- 80
2 Answers
0
The cache-control
you see is inserted by default. Websites must have a cache control.
If you want to control it check here, but if you DON'T want to catch anything, check here.

Community
- 1
- 1

Jordi Castilla
- 26,609
- 8
- 70
- 109
0
Most probably because you use a framework which adds a filter to set those headers (if you use Spring or Spring Security, they will add those headers, for example). Since you don't give more information, there is no better answer.

dunni
- 43,386
- 10
- 104
- 99
-
I am using the apache wicket with jetty, even if I set the header cache-control in the code, it didn't override the original one.. – Blake Apr 13 '15 at 08:34