Apply `SECURITY_CACHE_CONTROL` only to Flask-Security endpoints (#1264)