In my current project I'm getting some html templates (for a single page interface web app) via ajax. Now I'm interested if the caching works as expected - so I would like to enable caching for those templates. Does it make sense to enable caching just like on the production environment.
In my opinion I would make no difference between development and production environment.
As I see the pros/cons:
PROS:
- no extra testing if it works in production environment
- no need for different configuration on dev/production environments
CONS:
- cache needs to be configured according to latest file versions, not release-version (otherwise you'll have to constantly clear the cache and the QA will annoy you with already resolved bugs)
Does that make sense?
Any other pros / cons / recommendations?
Or is it a better approach to enable caching on the development environment just shortly to test some specific behavior (in my case the caching of the templates, or in another case the caching of the static files)