Say that I am creating a news site on example.com, and now I have example.com/latest.php, this is a script that does a lot of query, and I want to improve performance. How can I configure php/nginx, so that it generates cache and when a visitor comes, the cache is sent, so s/he won't wait too long.
PS: On example.com/donotcache.php, I don't want it to be cached (user counting script), how to do it? Questionlist:
- What modules do I need?
- What modifications to do on nginx config?
- What if I need to use CSP(Content Security Policy) nonce(Then every page is dynamic)?
nginx -Tto the question so the respective directives can be added.