A web page serves for internet public access and authenticated users, often time offer some type of browser cache to improve user experience.
Modern browser support varies type of HTTP Web API caching machinesm to effectively improve load performance. It reduces unnecessary network requests by storing copies of pages, images, and other media content on your device. The browser uses these copies to load content faster the next time you visit those sites.
htmx provides couple of mechanism for interacting with browser history API like hx-push-url and hx-boost attributes allows browser navigation bar and magically add the current state of the page visits into the browser's history.
For instance, When a user clicks on a URL link, htmx will try took snapshot the current DOM and cache it before it makes a request to respective destination.
On the other hand, htmx History snapshotting can be disabled for a URL by setting the hx-history attribute to false on any element in the current document, or any html fragment loaded into the current document by htmx. This can be used to prevent sensitive data entering the local Storage cache, which can be important for shared-use / public computers. History navigation will work as expected, but on restoration the URL will be requested from the server instead of the local history cache.
#python #htmx #flasks #programming #pythonprogramming #pythonforbeginners #pythonprojects #pythonbeginner #flasktutorial #hx-boost #hx-get #hx-target #hx-push-url #hx-history #htmx-history-cache #sqlalchemy
GitHub Link:
https://github.com/scheehan/disable_a...
Extras:
sqlalchemy tool
コメント