Webinoly is just the perfect tool for NGINX experts. Give it a try!
+2 votes
by Talented


I ran some checks on a few sites with pingdom and gtmetrix and there was a message that some static components didn't have a far-future expiration date.So, I manually added the following on the sites' custom-nginx.conf, which removed the message.

location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|eot|otf|woff|ttf|atom|rss)$ {
        expires max;
        log_not_found off;
        access_log off;

I thought that adding expires header is considered a good practice, but since Webinoly is already optimized for speed, I was wondering if it actually helps or if there is a reason that I should avoid it.


1 Answer

+3 votes
by Expert
selected by
Best answer

Hi Georgios,

Actually, you have found a very big error I made in the latest release and I hadn't noticed until now.

Expires header is an area that is very well covered in Webinoly, but during the latest update/release I was updating and adding support for some new file extensions. Now I see that some extensions were removed unintentionally.

# Old
location ~* \.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|swf)$ {

# New
location ~* \.(ogg|ogv|svg|svgz|eot|otf|woff|woff2|ttf|m4a|mp4|ttf|rss|atom|jpe?g|gif|cur|heic|png|tiff|ico|webm|mp3|aac|tgz|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf|swf|webp)$ {

# Now we need to "merge" both of them.

Sorry for the inconveniences and thanks a lot for reporting this issue.

It will be fixed in the next release v1.9.1 (this week).


by Talented
Good to know, thanks for the quick response!
by Expert

Webinoly v1.9.1 has been released!

Due to this is not a critical issue, we have no forced the Nginx conf automatic update.

# Update Webinoly
sudo webinoly -update

# Reload NGINX conf
sudo webinoly -server-reset=nginx 


by Talented
Thanks again!

I updated and now everything seems OK.
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.