Another option is to use the Wayback Machine's "save page now" functionality.
And for local storage, check out https://webrecorder.io/ for an example implementation.
And for local storage, check out https://webrecorder.io/ for an example implementation.