You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: stale browser views after restarting in another directory (#70)
Directory listings were being served through Go's FileServer,
which meant the browser could revalidate / with
If-Modified-Since and get a 304 Not Modified. When
go-grip was restarted on the same host and port in a
different folder, the browser could then reuse the
previous run's HTML and show an old file list.
Refactor the server to use a local mux, mark directory
listings and rendered markdown pages as non-cacheable,
strip conditional cache validators before directory
requests reach FileServer, and add regression tests for
the directory, markdown, and regular file cases.
feat: add mermaid zoom (#69)
This adds a simple zooming mechanism for mermaid diagrams similar to the one from github. This also improves some styling issues.