DEV Community

loading...

Discussion on: Accelerate your website with Nginx as a reverse proxy cache

Collapse
nimatrazmjo profile image
Nimatullah Razmjo

Hi,
Thanks for the article. I have a question. If I cache all my assets(images, font, css).

How does the nginx cache work? If I hard refresh the page does it get the data from the folder or from cache?

Collapse
shameemreza profile image
Shameem Reza Author

You are welcome @nimatullah and thanks for reading my articles.

Nginx's cache is powerful! It can cache proxied HTTP requests, however it can also cache the results of FastCGI, uWSGI proxied requests and even the results of load balanced requests (requests sent "upstream"). This means we can cache the results of requests to our dynamic applications.

By the way, I will suggest you read this article: nginx.com/blog/nginx-caching-guide/ or do some research using google.

Forem Open with the Forem app