question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement caches maps

See original GitHub issue

The idea is serve one cache for any navigation request, /albums for example. Same, if cache is empty, any navigation request should populate given cache.

Probably not any. Maybe something specified in map like this:

{
  '/albums': '/',
  '/gallery': '/'
}
// or
{
  '/*': '/shell.html'
}

Here is the use case number one: https://github.com/NekR/offline-plugin/issues/27 Second use case it to serve server-rendered content on network requests, but in ServiceWorker, cache the AppShell.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
NekRcommented, Oct 15, 2016

Is everyone here okay with this design for cache maps:

https://github.com/NekR/offline-plugin/issues/117

Here was a code example, but I actually placed it to separate issue for clarity

/cc @MoOx @developit @KyleAMathews

1reaction
NekRcommented, Jun 3, 2016

@nodkz so essentially it’s just runtime-rewriter-function, right? Yeah, good idea 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is map caching?—ArcGIS Server
Map caching is a way to make your map and image services run faster. When you create a map cache, the server draws...
Read more >
How to implement cache in Java - Medium
In this post, we'll go through the steps to create a in memory cache in java. To create a cache, we can simply...
Read more >
12 Implementing Storage and Backing Maps
This chapter provides information on coherence storage using backing maps. The following sections are included in this chapter: Cache Layers. Operations.
Read more >
Cache maps - HERE Developer
Use tile caching when you are not requesting a specific map version. If you always want the latest version of the map, but...
Read more >
Tutorial: Creating a cached map service
When you cache a map service, the server draws the map at a set of scale levels that ... may have already determined...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found