Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
60 views
by Rookie
I had already used webinoly wordpress with cloudfront CDN and caching was working very fine and I use these commands to reset the cache control header.

Here is the command

sudo webinoly -header-cache-control=reset

sudo webinoly -header-cache-control=on

s-max-age=600

But now these commands are not working.

So now please tell me how can I do this.

Now cloudfront is not Hitting the cache only fastcgi is working

1 Answer

0 votes
by Rookie

Very simple, first open header config file via below command

sudo nano /etc/nginx/common/headers-html.conf

and add header like this example.

add_header Cache-Control "max-age=300";

Now check nginx error.

sudo nginx -t

and restart nginx.

sudo systemctl reload nginx
Done, Enjoy!
by Expert

Please, read the documentation!

Webinoly has a configuration file, other way your custom configuration will be lost or corrupted after some updates.

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.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

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

...