Skip to content

Conversation

@marcus-at-localhost
Copy link

Add possibility to cache pages with querystrings
Use the new way of Pico, how to load config values

Add a hash of the query string to the filename call eg: /page?id=xyz => page__3c1e9d261634be3a29e86c3473cd1885.html
Yaml config should look like this now

```
PicoZCache:
  enabled: true          # True/False if cache is enabled
  dir: cache/html/    # Directory where cache should be saved
  time: 604800           # Interval between caching (period from one to second cache) in seconds, here is 7 days = 60 * 60 * 24 * 7.
  xhtml_output: false    # If true, XHTML Content-Type header will be sent when loading cache page
```
Feature 1
dbeniamine referenced this pull request in Tetras-Libre/pico_cache Feb 15, 2022
Cache pages with a Querystring
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant