snix/web/planet-mars
Thomas Koch 85b5c2be89 Fix caching
Nginx's std cfg only returns 304 with If-Unmodified-Since header, if the date
is exactly the one it expects, not the date the client did its last request.

This makes sense as it is much easier to compare two strings for equality than
to parse the date received from the client and check the ordering with the
server known last_modified value.
2025-01-11 13:38:20 +02:00
..
src Fix caching 2025-01-11 13:38:20 +02:00
templates generating html from 12 feeds works 2025-01-10 20:17:06 +02:00
.gitignore . 2025-01-10 11:39:54 +02:00
Cargo.lock generating html from 12 feeds works 2025-01-10 20:17:06 +02:00
Cargo.toml generating html from 12 feeds works 2025-01-10 20:17:06 +02:00
mars.toml.example . 2025-01-10 11:39:54 +02:00
README.org . 2025-01-10 11:39:54 +02:00

Simple planet like planet venus but in rust and maintained.

todo

Also see todos in the source files

do clippy and rustfmt

TODO error handling everywhere

write templates for html and atom/rss feeds

use a nice lib to process the config file

  • should check whether dirs exists and are writeable
  • should check whether feed urls can be parsed

Credits

While writing this, I read and also copied code from:

  • agro
  • haded by Akshay Gupta
  • planetrs by Vagdish/Adau, Dirkjan Ochtman, Josh Matthews