I’m using the static proxy feature to serve my web site:
[[statics]] guest_path = "/static/history" url_prefix = "/history" [[statics]] guest_path = "/static" url_prefix = "/" [[statics]] guest_path = "/static/services" url_prefix = "/services"
I originally thought I only needed the second clause, and that recursion would take care of the rest. However, neither
/services was served, so I added the first and third clause. Still, whenever I visit
/services, I’m redirected to
/. Except when I’m not. I’ve found that if I wait long enough,
/history will start to work, i.e. the file
/static/history/index.html will be served there, and the images that it refers to will, too, even if I’ve left the deployed app untouched — if I haven’t even redeployed it. At the same time,
/services will still get a 301 redirect to
Is there some cache invalidation magic that needs doing, or am I missing something obvious?