htmx icon indicating copy to clipboard operation
htmx copied to clipboard

History cache not cleared after historyCacheSize has been set to 0 and cache was not empty

Open aomader opened this issue 2 years ago • 2 comments

If the history cache is not empty and the historyCacheSize is set to 0, the history cache is not cleared, but still used. This leads to very subtle bugs.

https://github.com/bigskysoftware/htmx/blob/7ea35d03c6226aaf278b47d80170132bad9384f0/src/htmx.js#L1945-L1956

aomader avatar Jan 26 '23 20:01 aomader

+1 - This is something that I have encountered and found confusing in the past.

michaelperel avatar Feb 02 '23 04:02 michaelperel

I ran into this problem as well, and the pull fixed it. https://github.com/bigskysoftware/htmx/pull/1222

mikeball avatar Jun 08 '23 19:06 mikeball