9951 explained code solutions for 126 technologies


nginxEnable client cache


server {
  location ~* \.(css|js|png|jpg|gif|svg)$ {
    add_header Cache-Control "public";
    expires 30d;
  }
}ctrl + c
server {

virtual server configuration block

css|js|png|jpg|gif|svg

files extensions to enable client caching for

expires 30d

cache content in browser for 30 days

add_header

sets specified header

Cache-Control "public"

special header to ask browsers to cache specified content