Skip to content

Commit 34e2bf2

Browse files
authored
http push fix.
1 parent 982ab66 commit 34e2bf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WebPHPack.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function combineJS ()
7878
$filetime = filemtime($this->outputPath.'/'.$this->outputJSfilename);
7979
$newsrc = str_replace('</head>', '<script async src="'.$this->outputURL.'/'.$this->outputJSfilename.'?'.$filetime.'"></script></head>', $newsrc);
8080
$this->headerlinks[] = [
81-
'link'=>$this->outputURL.'/'.$this->outputJSfilename,
81+
'link'=>$this->outputURL.'/'.$this->outputJSfilename.'?'.$filetime,
8282
'type'=>'script'
8383
];
8484
$this->outputHTML = $newsrc;
@@ -113,7 +113,7 @@ public function combineCSS()
113113
$filetime = filemtime($this->outputPath.'/'.$this->outputCSSfilename);
114114
$newsrc = str_replace('</head>', '<link href="'.$this->outputURL.'/'.$this->outputCSSfilename.'?'.$filetime.'" rel="stylesheet" media="none" onload="if(media!=\'all\')media=\'all\'">'.'</head>', $newsrc);
115115
$this->headerlinks[] = [
116-
'link'=>$this->outputURL.'/'.$this->outputCSSfilename,
116+
'link'=>$this->outputURL.'/'.$this->outputCSSfilename.'?'.$filetime,
117117
'type'=>'style'
118118
];
119119
$this->outputHTML = $newsrc;

0 commit comments

Comments
 (0)