If you know about NGINX and servers, Webinoly is for you!
0 votes
16 views
by Rookie

I am planning to use Google Cloud CDN for my Wordpress site created with Webinoly. For content to be cached, Google Cloud CDN requires.

- Cache-Control header with a public directive

- Cache-Control header with a max-age or s-maxage directive, or an Expires header with a timestamp in the future

Taking a look at the response headers for my test site, most of the required headers seem to be missing. The page itself has Cache-Control: public, no-cache but there is no max-age header set. The fonts, javascript, and css have Cache-Control: max-age=315360000 but no public directive. I'm also not sure if these headers are set by Webinoly or one of my plugins.

How can I get more control over these headers? For example to meet the requirements of Google Cloud CDN? Or if I want to change the max-age for certain resources for browser cache?

Please log in or register to answer this question.

Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.

Donations

Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations GitHub Sponsors

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...