index : paprika

A blogging platform written in Rust for Cloudflare Workers, integrated with Standard Notes

path: root/README.md
diff options
context:
space:
mode:
authorPeter Cai <[email protected]>2020-04-13 18:10:34 +0800
committerPeter Cai <[email protected]>2020-04-13 18:10:34 +0800
commit44ca2f6de32f8fcc4180ece889207a6e6b29af41 (patch)
treeffb1b4b6c9b35f1aaca533cbcb67e7d14ec31bf2 /README.md
parente6df5544f4095ef0ba262c9dd54277f220509e66 (diff)
downloadpaprika-44ca2f6de32f8fcc4180ece889207a6e6b29af41.tar.gz
support cache-control for static resources
Diffstat (limited to 'README.md')
-rw-r--r--README.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index c235396..056b52b 100644
--- a/README.md
+++ b/README.md
@@ -66,6 +66,7 @@ This is the main configuration file. The file will be compiled statically into t
"description": "<description>",
"plugin_identifier": "com.example.change.this.to.whatever.you.like",
"posts_per_page": 5,
+ "cache_maxage": 86400,
"redirects": {
"/foo": "/bar",
...
@@ -87,6 +88,8 @@ This is the main configuration file. The file will be compiled statically into t
`redirects`: OPTIONAL. A map of URLs where the key will be mapped to the value by Paprika using 301 redirects. This is mainly useful for migration from another blogging platform.
+`cache_maxage`: OPTIONAL. A value in seconds determining how long the browser should cache static resources from the blog. If omitted, the default value is a week.
+
`hljs`: An array of language support from `highlight.js` to be included in the final binary. The full `highlight.js` is notoriously huge and there's really no reason to include a bazillion languages you will never actually use in your blog posts. This will be read by `build.rs` to generate a JS shim that will load all languages in the array to the final binary via `webpack` support for `require`.
Configuration: theme_config.json