Skip to content

serviejs/popsicle-no-cache

Repository files navigation

Popsicle No Cache

NPM version NPM downloads Build status Test coverage

Prevent caching of HTTP requests.

Installation

npm install popsicle-no-cache --save

Usage

import { middleware, toFetch } from "popsicle";
import { Request } from "popsicle/dist/node";
import { noCache } from "popsicle-no-cache";

const fetch = toFetch([noCache(), middleware], Request);

License

MIT