Re:Static web – back to the roots?
by chriswarbo on Saturday May 25, 2019 @07:28AM
(#20008385)
Varnish passes requests through to the underlying site (in this case Wordpress), which doesn't make it any more secure.
If the cache were fully populated (e.g. by spidering the site) and never became stale, then it would be roughly equivalent. Still, I'd rather disconnect Wordpress after spidering, so there's no chance of requests leaking through.
There might other options like caching at the DNS level with something like CloudFlare[2]
I don't work with Wordpress but generate static pages sounds like generating a cache, so these two option might be useful if you need to keep Wordpress but want the benefit of static pages.
[1] https://www.varnish-software.com/wiki/content/tutorials/word...
[2] https://wordpress.org/plugins/cloudflare-page-cache/