How to use cache-content-type - 1 common examples

To help you get started, we’ve selected a few cache-content-type examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dazejs / daze / packages / framework / src / response / index.ts View on Github external
setType(type: string) {
    const _type = getType(type);
    if (_type) {
      this.setHeader('Content-Type', _type);
    }
    return this;
  }

cache-content-type

Create a full Content-Type header given a MIME type or extension and cache the result

MIT
Latest version published 6 months ago

Package Health Score

75 / 100
Full package analysis

Popular cache-content-type functions