You need to change the nginx configuration on your server.
Here is an interesting article in which you should read :
Your configuration should look like this:
location ~* \.(?:css|js)$ { expires 1y; add_header Cache-Control "public"; }
To expire after 1 year, for example
source share