when configuring web servers (nginx) is it uncommon to set and expire time and cache every element in every directory that gets requested by the client browser?
some examples of expire time i just found on the nginx site and servervault:
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
}
location ~* \.(?:css|gif|jpe?g|png)$ {
expires max;
}
how would i write the location
line if i wanted to experiement with setting an expiration to every element?
location ~* \.(?:*)$ {
expires 2d;
add_header Pragma public;
add_header Cache-Control "public"
}