Use a filter to set max-age for resources in the sample projects.

@chuckdumont