Not much to it – if a JS application throws an Error when network connectivity is not available, it’s saved to localStorage. When it comes up again, cached errors are sent so you never miss a thing. This is crucial on mobile platforms when a constant internet connection is not a given.
Enabling offline caching is simple and can be done with the following function call:
Couldn’t be simpler! Saved errors will retain all data including the time they were generated at.
This feature is fully supported in all modern (self-updating) browsers like Chrome, Opera, Firefox and IE 10 and 11. Some support is also available for IE 8 and 9 – errors will be saved if the initial post to the Raygun API times out.
The new 1.8.0 release is available now from Bower and NuGet so you can grab it immediately.