Replaced resource delivery filter with middleware to avoid overhead when
serving static resources.