Siteground direct nginx
-
Hi
My siteground account has just been upgraded from cpanel to the new site tools.I now have the option to enable NGINX direct delivery.
Bearing in mind I am on a shared server can you please let me know if I should enable nginx and if so what settings should I use on wp cloudflare super page cache?
Thank you.
Best regards
John
-
Hi @john53,
Reading your message it seems they are not actually enabling nginx at your server level but rather allowing you to use nginx as a proxy. In that case you really don’t need it. You will have much better cache experience with the fallback cache + Cloudflare CDN level cache.NGINX Direct Delivery has nothing to do with the reverse-proxy NGINX powering the full-page caching.
It handles only static resources and you should totally enable it. It should not cause problems with other plugins. By the way, you have full-page caching on Cloudflare in the SG Optimizer too.
Hi @hristo-sg,
If the NGINX Direct Delivery only handles the static resources then yes it definitely can be enabled. Thanks for clarifying that. πyou have full-page caching on Cloudflare in the SG Optimizer too
– That’s really good. But it seems it only works over Worker mode which is not 100% free like page rules, I hope you are aware of that.
Moreover, while digging a bit I saw that you guys took that feature from this plugin and your Worker script: https://plugins.trac.ww.wp.xz.cn/browser/sg-cachepress/trunk/templates/cloudflare-worker.tpl is almost a clone of the worker script I wrote for this plugin. π
One more thing, as I was reading this page: https://www.siteground.com/tutorials/wordpress/sg-optimizer/cloudflare-full-page-caching-sg-optimizer/ I saw that you guys add the
cache-controlofs-max-age=604800, s-maxage=604800, max-age=60exactly like we used to do and there is a mistake. You guys should have followed our changelog. Thes-max-ageserves absolutely no purpose and we have removed it long back (check changelog). So, just keeps-maxage=604800, max-age=60.Also for requests not to cache it’s better to add
must-revalidateinno-store, no-cache, max-age=0. Just a few things I noticed while looking around. πYes, we are aware, workers have a free limit of 100 000 hits a day which more than enough for sies on a shared environment π Thanks for pointing out those two, I will check them out but they are there for compatibility reasons, we donβt serve only Chrome users π
-
This reply was modified 5 years, 3 months ago by
Hristo Pandjarov.
Hi @hristo-sg,
I will check them out but they are there for compatibility reasons, we donβt serve only Chrome users
–
s-maxageis a Cloudflare CDN level directive that has nothing to do with browsers. Read: https://support.cloudflare.com/hc/en-us/articles/115003206852-Understanding-Origin-Cache-Control#h_4250342181031546894839080Please don’t mind but if you guys have done homework and research before just copy-pasting our code and features into your own plugin by just cloning & renaming them without any credit or anything you guys would have known about this. π
Trust me, we have done, attribution will be added but there are only few checks that we’ve used directly, the code is far from being cloned and renamed.
Hi
Thank you both for your suggestions.I have NGINX Direct Delivery enabled on siteground and fallback cache + Cloudflare CDN level cache on the wp cloudflare super page cache plugin.
Presumably I can ignore the comments on the plugin cache settings that refer to nginx on the browser cache and other sections?
Thank you once again
Best regards
John
Hi @john53,
If your main server (which is serving the website) is not nginx based then you don’t have to worry about adding those nginx rules into yournginx.conffile.Thank you very much.
-
This reply was modified 5 years, 3 months ago by
The topic ‘Siteground direct nginx’ is closed to new replies.