Last change
on this file since 632 was
70,
checked in by gav, 16 years ago
|
Adjust NoCacheFilters? after more research, should be as good as it gets.
Regenerate Task views.
Return to spinner.gif due to png animation support issues.
|
File size:
773 bytes
|
Line | |
---|
1 | class NoCacheFilters { |
---|
2 | |
---|
3 | def filters = { |
---|
4 | all(controller:'*', action:'*') { |
---|
5 | before = { |
---|
6 | |
---|
7 | //Turn off as much caching as we can. |
---|
8 | response.setHeader("Cache-Control", "no-cache,no-store,must-revalidate")// HTTP 1.1 |
---|
9 | response.addDateHeader('Expires', 0) |
---|
10 | response.setDateHeader('max-age', 0) |
---|
11 | response.setIntHeader ('Expires', -1) //prevents caching at the proxy server |
---|
12 | response.addHeader('cache-Control', 'private') //IE5.x only |
---|
13 | response.addHeader('Pragma', 'no-cache') //HTTP 1.0 |
---|
14 | |
---|
15 | } |
---|
16 | |
---|
17 | after = { |
---|
18 | |
---|
19 | } |
---|
20 | afterView = { |
---|
21 | |
---|
22 | } |
---|
23 | } |
---|
24 | } |
---|
25 | |
---|
26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.