For the new httpd, will there be a mechanism to set cachability?

Browser/proxy caching reduces both bandwidth costs & server load.

Rough nginx e.g:

http {
        ...
        ..
        expires 3d;
        add_header Pragma public;
        add_header Cache-Control public;

        server {
                ...
                ..

                location ~* \.(?:jpe?g|png|gif|svg|mp3|mp4)$ {
                        expires 1y;
                }

                location ~* \.(?:ico|js|pdf)$ {
                        expires 3M;
                }

        }
}

Maybe something could be done globally within the mime types???

Reply via email to