vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Variable HTTPFileServerSettings.cacheControl

Cache control to control where cache can be saved, if at all, such as proxies, the storage, etc.

class HTTPFileServerSettings
{
  // ...
  string cacheControl = null;
  // ...
}

Leave null or empty to not emit any cache control directives other than max-age if maxAge is set.

Common values include: public for making a shared resource cachable across multiple users or private for a response that should only be cached for a single user.

See https://developer.mozilla.org/de/docs/Web/HTTP/Headers/Cache-Control

Authors

Sönke Ludwig

Copyright

© 2012-2015 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.