aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service/web/controller.scm
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-10-06 14:19:26 +0100
committerChristopher Baines <mail@cbaines.net>2019-10-06 14:19:26 +0100
commiteab5a70976def28993244235420c70dbd8296e6c (patch)
tree38614859b9d554f435cbb156ba8c3cf5b2bd6bd2 /guix-data-service/web/controller.scm
parent7e5d54148d3d8734fec3c3d5a7e32a9a40dd1a2c (diff)
downloaddata-service-eab5a70976def28993244235420c70dbd8296e6c.tar
data-service-eab5a70976def28993244235420c70dbd8296e6c.tar.gz
Add a new static-asset-from-store-renderer function
Previously, the assets would be served from the store normally, but this meant that they were read from disk each time, and stat calls were used to determine when they were last modified. This doesn't work for files in the store, as the timestamps are normalised, therefore add a renderer that takes advantage of the asset directory being in the store. All the files are read at startup, and then stored in memory. Also, the process start time is used as a value for the last modified header, which isn't ideal, but it's better than 1970.
Diffstat (limited to 'guix-data-service/web/controller.scm')
0 files changed, 0 insertions, 0 deletions