Hey, I just wanted to make an update on what I have found.
After more testing I also saw this error happen on the child theme css file after editing it in the Wordpress Theme Editor sometimes. The error shown in browser console is net::ERR_HTTP2_PROTOCOL_ERROR 200 (I thought it was a 502 error with the stylesheet generated by the theme customizer but I could be mistaken).
I was able to reproduce this error by the following procedure:
1. Open site and hard refresh a few times to make sure the file is cached by nginx (Chrome browser hold down shift key while clicking the refresh button).
2. Edit a css file in Wordpress theme editor and then save it.
3. Open an incognito window and load the site. The css file that you edited will not load and you should see an error in the NGINX error log "pread() read only xxxx of yyyy from..."
I commented out these 2 lines in the nginx.conf file and it seems to have solved the problem.
#open_file_cache_valid 3m;#open_file_cache max=37440 inactive=5m;
I guess I will leave these lines commented out while I'm developing my site and often modifying css files and then restore the options once the site goes live. Unless anyone has a better a suggestion on this?
PayPal · GitHub Sponsors · Bitcoin