caching for all pages can be done with one liner

config moved to global App scope because of JS errors
build had issue with missing directory