I am not sure if this is workable, is these a way for Varnish to cache 404 page? I have a HTTP flood attack to the website, and they always target invalid URL, I do not want these traffic to go to backend server. Of course I could do more on network layer, but unfortunately it's out of my control and it always takes longer time for change request :)