← All text tools

HTTP Caching and Download Header Generator

Build a Cache-Control value and a Content-Disposition filename header with ready Apache, Nginx, _headers and Express snippets, plus a short ETag and directive guide.

  • Free
  • No sign-up
  • Works on any device

About HTTP Caching and Download Header Generator

The Cache-Control header decides how long browsers and CDNs may reuse a file, and a wrong value either serves stale pages or wastes bandwidth. Choose a case such as fingerprinted assets, which get public, max-age=31536000, immutable, images, HTML that must be revalidated, private responses or no-store, or build your own with max-age, s-maxage, stale-while-revalidate and the other directives. You also get a Content-Disposition value with an ASCII filename and a UTF-8 filename* fallback for names like Résumé, ready snippets for Apache, Nginx, a _headers file and Express, and a short guide to ETag revalidation.

How to use HTTP Caching and Download Header Generator

  1. Choose what you are caching, such as fingerprinted assets or HTML pages, or switch to custom.
  2. Enter the file extensions for the server rules, and a download file name if you need one.
  3. Copy the snippet for your server and test it with the network tab of the browser developer tools.

Why use this tool?

Also known as

Frequently asked questions

When is it safe to use immutable?

Only for files whose name changes whenever the content changes, such as app.3f9c2a.js. For a fixed name like style.css visitors would keep the old copy for a year.

What is the difference between no-cache and no-store?

no-cache lets the browser keep a copy but forces it to check with the server before each use, often answered with a small 304. no-store forbids keeping any copy, which is right for sensitive data.

Why does the download header have two filenames?

filename carries a plain ASCII fallback for old software, and filename* carries the real name in UTF-8 percent-encoding, as RFC 6266 describes. Modern browsers use the second one when present.

Is HTTP Caching and Download Header Generator free?

Yes. HTTP Caching and Download Header Generator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.