Add event dispatch before sending response. Correct Cache-Control headers to exclude cookies from caching.