Add getResourceModified to ResourceProvider API.
Add getResourceModified implementation to DefaultResourceProvider.
Use getResourceModified in resource middleware.