I am building a Grails app that will utilize HTML5's Offline Mode. In that article, the author talks about the requirement for your web server to not cache something called the "Cache Manifest" file:
So here’s one thing you should absolutely do: reconfigure your web server so that your cache manifest file is not cacheable by HTTP semantics.
So I need to figure out how to tell Grails (2.4.x) not to allow clients to cache a particular file. I found this answer but am not confident it is the generally-accepted "Grails way" of doing this.
So I ask:
- Is that answer the generally-accepted way of prohibiting a file from being cached in Grails? If not, then what is?; and
- If it is, then what is
CacheFilters
, where do I define it, and are there any docs on itsall
,before
,after
,afterView
, etc. methods?