Skip to content

Commit

Permalink
hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ch4s3 committed Oct 24, 2017
1 parent 48ab7d0 commit ea1a069
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/javascript/ink-stream/turboPatch.js
Expand Up @@ -104,6 +104,8 @@ const preload = function(event) {
let cache = Turbolinks.controller.cache.get(location);
if (!cache) {
cache = Turbolinks.controller.cache.get(`prefetch${location}`);
}
if (!cache) {
const request = new Turbolinks.CachedHttpRequest(null, location, window.location);
Turbolinks.controller.cache.put(`prefetch${location}`, request);
return(request.send());
Expand Down

0 comments on commit ea1a069

Please sign in to comment.