3 ms·
I generate my blog with a static site generator I wrote, but I don't see how anyone would be able to tell by inspecting the output. A heuristic that might work
by jefftk 7y ago
I generate my blog with a static site generator I wrote, but I don't see how anyone would be able to tell by inspecting the output.
A heuristic that might work would be to add a cachebuster query parameter to the page url (?cb=$RANDOM) and see how long it takes to respond. The idea is that the three most common setups are:
* static site served with apache/nginx/etc, which will just ignore the query param
* dynamic site, which will regenerate the page
* dynamic site behind a cache where the cache doesn't know that the query parameter isn't needed, and so the cachebuster will cause the page to be regenerated