It seems that within the default VCL we provide for Varnish 4 and 3, when banning a specific page, the regexp is not good and should cause issue regarding cache.
See Using Varnish.
The regex uses "~" and this means "contains", so if we modify location 123, it will also remove cache for location 1234, 1235, 1236 and so on. This must be changed to prevent such behavior.
- Create an article and make sure it has a node_id similar to "142"
- Create more articles, and make sure one of them has a node_id similar to "142x"
- Open the article with the node_id "142x" and make sure you get a "HIT" on the header
- Edit the article with "142" and open the article with "142x" and confirm you get a "MISS" in the header