I wrote a simple grocery list app as a CLOG learning exercise. It works very well, except today I decided to go back to it and fiddle with the styling. In order to keep things tidy, I'm adding my own rules to a separate css file that I'm loading like so:
(load-css (html-document body) "/css/fnlst.css")
This worked well for me in the past, however I've added a rule recently and no matter what I try, I can't get CLOG to serve the updated file. Here are the relevant snippets:
However, nothing I've tried will get the .fnlst-add-new rule to show up in the browser. If I view the css file in the firefox inspector, it's missing that middle rule (see screenshot):
I've tried clearing the browser cache, deleting the file and recreating it, but nothing seems to cause CLOG to serve the updated file. As a workaround, I have been renaming the css files, so for example I'll rename it to fnlst2.css and then fnlst3.css and so on and so forth, and this works but obviously it's supremely un-ergonomic.
Just to be clear: If I do the following:
$ mv fnlst2.css fnlst.css
then upon a page refresh, the .fnlst-add-new rule is missing. If I rename it back to fnlst2.css the rule is restored.
Does CLOG cache static files somewhere and if so is there a convenient way to invalidate that cache?
I wrote a simple grocery list app as a CLOG learning exercise. It works very well, except today I decided to go back to it and fiddle with the styling. In order to keep things tidy, I'm adding my own rules to a separate css file that I'm loading like so:
(load-css (html-document body) "/css/fnlst.css")
This worked well for me in the past, however I've added a rule recently and no matter what I try, I can't get CLOG to serve the updated file. Here are the relevant snippets:
The contents of
fnlst.css
are:However, nothing I've tried will get the
.fnlst-add-new
rule to show up in the browser. If I view the css file in the firefox inspector, it's missing that middle rule (see screenshot):I've tried clearing the browser cache, deleting the file and recreating it, but nothing seems to cause CLOG to serve the updated file. As a workaround, I have been renaming the css files, so for example I'll rename it to
fnlst2.css
and thenfnlst3.css
and so on and so forth, and this works but obviously it's supremely un-ergonomic.Just to be clear: If I do the following:
then upon a page refresh, the
.fnlst-add-new
rule is missing. If I rename it back tofnlst2.css
the rule is restored.Does CLOG cache static files somewhere and if so is there a convenient way to invalidate that cache?