i am not a cache expert, I always used shared hostings in the past, and I started to use DO recently together with trellis/bedrock/sage.
so far so good, I never activated the cache in my previous projects, but now I am going online with a new project (and I think that I will need the cache on this because it will receive a lot of visitors because a social campaign will link to it) so I would like to activate the cache, so I can speed up a little bit and keep the droplet happier.
I read the docs, and as far as I understood, there is the built-in option to activate the page caching.
Do I need to set inside wordpress_sites.yml just the value to true, or I need to paste the whole settings?
are these settings ok for the majority of the WordPress websites or I need to be aware of something?
moreover, I would like to active also the caching of assets (so google speed test will be happy), and add the expiry headers, I saw that I can do this, by creating a file cache.conf.j2 inside trellis/nginx-includes/sitename.com/ folder.
are there any recommended settings for this?
is roots.io still using this setting (post of 2017)?
are these the default settings?
is the exactly the same as just enabled: true?
regards the expiry headers I thought about this, I am using sage 9, so for the main css/js I will be safe.
what about the others css/js that the plugins include, is there a recommended way to add hash/version also to these files?
if not, because changing these files will be exceptional (just in case of emergency), I can do like old school adding ? at the end to force the browser to download a new version.