Fix check for whether shell has changed (#5176)

Previously shell_top was being checked twice - now we check top + bottom :)
This commit is contained in:
Dan Silcox 2019-12-23 23:19:50 +00:00 committed by Ben Halpern
parent 367f05695f
commit e98d3cb7be

View file

@ -37,7 +37,7 @@
function createPageStream(request) {
const stream = new ReadableStream({
start(controller) {
if (!caches.match('/shell_top') || !caches.match('/shell_top')) { //return if shell isn't cached.
if (!caches.match('/shell_top') || !caches.match('/shell_bottom')) { //return if shell isn't cached.
return
}
@ -140,4 +140,4 @@
}
}
});
<% end %>
<% end %>