File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,9 +21,10 @@ const server = prerender({
2121 '--metrics-recording-only' ,
2222 '--no-first-run' ,
2323 '--safebrowsing-disable-auto-update' ,
24- '--blink-settings=imagesEnabled=false'
24+ '--blink-settings=imagesEnabled=false' ,
25+ '--no-pings'
2526 ] ,
26- pageLoadTimeout : 20000 ,
27+ pageLoadTimeout : 10000 ,
2728 waitAfterLastRequest : parseInt ( process . env . WAIT_AFTER_LAST_REQUEST , 10 ) || 200 ,
2829 pageDoneCheckInterval : 50 ,
2930 chromeRefreshRate : 100
@@ -59,6 +60,11 @@ const BLOCKED_PATTERNS = [
5960 / \/ h u b \? / ,
6061 / e v e n t s o u r c e / i,
6162 / l i v e r e l o a d / ,
63+ / y o u t u b e \. c o m / ,
64+ / g o o g l e v i d e o \. c o m / ,
65+ / y t i m g \. c o m / ,
66+ / \. ( m p 4 | w e b m | o g v | m p 3 ) ( \? | $ ) / ,
67+ / \. ( p n g | j p g | j p e g | g i f | s v g | i c o ) ( \? | $ ) / ,
6268] ;
6369
6470// Patterns for requests that should be ignored in requestsInFlight count
@@ -162,8 +168,9 @@ server.use({
162168 }
163169} ) ;
164170
171+
165172server . use ( prerender . removeScriptTags ( ) ) ;
166- server . use ( memoryCache ) ;
173+ // server.use(memoryCache);
167174
168175const RESTART_INTERVAL = 24 * 60 * 60 * 1000 ;
169176const startedAt = Date . now ( ) ;
You can’t perform that action at this time.
0 commit comments