forked from Spritetm/libesphttpd
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed static files expiration to 2h
- Loading branch information
1 parent
3e21e83
commit 13fa224
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13fa224
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @MightyPork, what was the reasoning behind this change?
13fa224
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's simple, I keep testing with some static assets and it kept needlessly reloading them every hour.
It could be made configurable, of course
13fa224
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, let me make that a Kconfig option, that imo would provide the most flexibility. Isn't there an issue with stale assets if the asset changes and the browser doesn't check again because the timeout is so long?
13fa224
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for static assets, they don't normally change unless you re-flash the chip with new ones. But it's still a little inflexible w.r.t. custom assets / files users might want to add. Maybe there should be a weak external function that users can choose to do this instead of this built-in one
something like
13fa224
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That could be an option.
I've been away working on hardware related things for a bit but should be back on software in the near future and back into the library as well to try to merge some of the remaining parts that I haven't gotten to so far. Pull requests still welcome! ;-)