From 297835a9b2c1673ec62932271160bc036d95832c Mon Sep 17 00:00:00 2001 From: Philipp Tanlak Date: Mon, 24 Nov 2025 20:58:57 +0100 Subject: public -> docs --- public/docs/configuration/caching/index.html | 604 --------------------------- 1 file changed, 604 deletions(-) delete mode 100644 public/docs/configuration/caching/index.html (limited to 'public/docs/configuration/caching') diff --git a/public/docs/configuration/caching/index.html b/public/docs/configuration/caching/index.html deleted file mode 100644 index 127eb18..0000000 --- a/public/docs/configuration/caching/index.html +++ /dev/null @@ -1,604 +0,0 @@ - - - - - - - - - - - - - - - Caching – Flyscrape - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - -
-
-
- -
Caching
-
- -
-

Caching

-

The cache config option allows you to enable file-based request caching. When enabled every request cached with its raw response. When the cache is populated and you re-run the scraper, requests will be served directly from cache.

-

This also allows you to modify your scraping script afterwards and collect new results immediately.

-
Configuration
export const config = {
-  url: "http://example.com/",
-  cache: "file",
-  // ...
-};
- -
-
-

Cache File -

When caching is enabled using the cache: "file" option, a .cache file will be created with the name of your scraping script.

-
Terminal
$ flyscrape run hackernews.js # Will populate: hackernews.cache
- -
-
-

Shared cache -

In case you want to share a cache between different scraping scripts, you can specify where to store the cache file.

-
Configuration
export const config = {
-  url: "http://example.com/",
-  cache: "file:/some/path/shared.cache",
-  // ...
-};
- -
-
- -
-
- - -
-
-
- - - - - - - - - - -- cgit v1.2.3