Whether the nginx static resource cache is etag or set expires

some configurations of nginx have been optimized recently

found that nginx will enable etag function by default, aiming at static files

so is it still useful to set it in server?
` location ~. . (js | css)?. $

    {
        root /home/app/static;
        expires 12h;
    }
    ```
 
 

I try to comment out the configuration of cached static resources in server above

access the static js file of the server, which is still in a state of 304, with etag

attached. Please explain it clearly.

Dec.26,2021

check the http cache. You have the answer

.
Menu