openpolitics.com

  • writing
  • quotes
  • Topics
    • academia
    • corruption
    • economics
    • education
    • environment
    • finance
    • history
    • hypertext
    • media
    • philosophy
    • psychology
    • religion
    • russia
    • ted nelson
  • about
← Previous Next →

Nginx: Far future expires

nginx’s ngx_http_headers_module provides the expires option, which control the Expires and Cache-Control HTTP headers.

  • ngx_http_headers_module

For example, this will set expiration to the maximum expiration

location /media/js {
   expires max;
}

location /media/css {
   expires max;
}
source: $link[host]

Tags: scalability

Read Original Source

Tim Langeman © 2025 · Genesis Framework · WordPress · Log in