Middleware update to ignore media / static queries if no subscription