diff -Naurw http2_push-0.3.3/Classes/Hooks/ContentPostProcessor.php http2_push/Classes/Hooks/ContentPostProcessor.php
--- http2_push-0.3.3/Classes/Hooks/ContentPostProcessor.php	2018-01-04 15:17:58.000000000 +0100
+++ http2_push/Classes/Hooks/ContentPostProcessor.php	2019-01-22 16:44:31.000000000 +0100
@@ -2,27 +2,23 @@
 
 namespace Ka\Http2Push\Hooks;
 
+use TYPO3\CMS\Core\Utility\GeneralUtility;
+
 /***************************************************************
  *  Copyright notice
- *
  *  (c) 2016 Kevin Lieser <info@ka-mediendesign.de>, www.ka-mediendesign.de
- *
  *  All rights reserved
- *
  *  This script is part of the TYPO3 project. The TYPO3 project is
  *  free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  *  the Free Software Foundation; either version 3 of the License, or
  *  (at your option) any later version.
- *
  *  The GNU General Public License can be found at
  *  http://www.gnu.org/copyleft/gpl.html.
- *
  *  This script is distributed in the hope that it will be useful,
  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  *  GNU General Public License for more details.
- *
  *  This copyright notice MUST APPEAR in all copies of the script!
  ***************************************************************/
 
@@ -46,7 +42,7 @@
 		preg_match_all('/href="([^"]+\.css[^"]*)"|src="([^"]+\.js[^"]*)"|src="([^"]+\.jpg[^"]*)"|src="([^"]+\.png[^"]*)"/', $GLOBALS['TSFE']->content, $matches);
 		$result = array_filter(array_merge($matches[1], $matches[2], $matches[3], $matches[4]));
 		foreach($result as $file) {
-			if($this->checkFileForInternal($file)) {
+			if($this->checkFile($file)) {
 				if (substr($file, 0, 1) === '/') {
 					array_push($this->headerLinkContent, '<'.$file.'>; '.$this->getConfigForFiletype($file));
 				} else {
@@ -56,6 +52,18 @@
 		}
 	}
 	
+    /**
+     * Check if file should be pushed
+     *
+     * @param string $file
+     * @return boolean
+     */
+	function checkFile($file)
+    {
+        $result = $this->checkFileForInternal($file) && $this->checkFileType($file);
+        return $result;
+    }
+
 	function checkFileForInternal($file) {
 		$components = parse_url($file);
 		if(!isset($components['host']) && !isset($components['scheme'])) {
@@ -64,6 +72,25 @@
 		return false;
 	}
 	
+    /**
+     * Check if file type is configured
+     *
+     * @param string $file
+     * @return boolean
+     */
+	function checkFileType($file)
+    {
+        $fileTypeList = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['http2_push'])['fileTypes'];
+
+        if (!strlen($fileTypeList)) {
+            $fileTypeList = 'css,js,jpg,png';
+        }
+        $fileTypes = GeneralUtility::trimExplode(',', strtolower($fileTypeList), true);
+        $extension = strtolower(end(explode('.', parse_url($file, PHP_URL_PATH))));
+
+        return in_array($extension, $fileTypes);
+    }
+
 	function getConfigForFiletype($file) {
 		$extension = end(explode('.', parse_url($file, PHP_URL_PATH)));
 		switch ($extension) {
diff -Naurw http2_push-0.3.3/Classes/Hooks/ContentPostProcessor.php.rej http2_push/Classes/Hooks/ContentPostProcessor.php.rej
--- http2_push-0.3.3/Classes/Hooks/ContentPostProcessor.php.rej	1970-01-01 01:00:00.000000000 +0100
+++ http2_push/Classes/Hooks/ContentPostProcessor.php.rej	2019-01-22 16:54:32.000000000 +0100
@@ -0,0 +1,86 @@
+--- /home/mw/http2_push-0.3.3/Classes/Hooks/ContentPostProcessor.php	2018-01-04 15:17:58.000000000 +0100
++++ /home/mw/http2_push/Classes/Hooks/ContentPostProcessor.php	2019-01-22 16:44:31.000000000 +0100
+@@ -2,27 +2,23 @@
+ 
+ namespace Ka\Http2Push\Hooks;
+ 
++use TYPO3\CMS\Core\Utility\GeneralUtility;
++
+ /***************************************************************
+  *  Copyright notice
+- *
+  *  (c) 2016 Kevin Lieser <info@ka-mediendesign.de>, www.ka-mediendesign.de
+- *
+  *  All rights reserved
+- *
+  *  This script is part of the TYPO3 project. The TYPO3 project is
+  *  free software; you can redistribute it and/or modify
+  *  it under the terms of the GNU General Public License as published by
+  *  the Free Software Foundation; either version 3 of the License, or
+  *  (at your option) any later version.
+- *
+  *  The GNU General Public License can be found at
+  *  http://www.gnu.org/copyleft/gpl.html.
+- *
+  *  This script is distributed in the hope that it will be useful,
+  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  *  GNU General Public License for more details.
+- *
+  *  This copyright notice MUST APPEAR in all copies of the script!
+  ***************************************************************/
+ 
+@@ -46,7 +42,7 @@
+ 		preg_match_all('/href="([^"]+\.css[^"]*)"|src="([^"]+\.js[^"]*)"|src="([^"]+\.jpg[^"]*)"|src="([^"]+\.png[^"]*)"/', $GLOBALS['TSFE']->content, $matches);
+ 		$result = array_filter(array_merge($matches[1], $matches[2], $matches[3], $matches[4]));
+ 		foreach($result as $file) {
+-			if($this->checkFileForInternal($file)) {
++			if($this->checkFile($file)) {
+ 				if (substr($file, 0, 1) === '/') {
+ 					array_push($this->headerLinkContent, '<'.$file.'>; '.$this->getConfigForFiletype($file));
+ 				} else {
+@@ -56,6 +52,18 @@
+ 		}
+ 	}
+ 	
++    /**
++     * Check if file should be pushed
++     *
++     * @param string $file
++     * @return boolean
++     */
++	function checkFile($file)
++    {
++        $result = $this->checkFileForInternal($file) && $this->checkFileType($file);
++        return $result;
++    }
++
+ 	function checkFileForInternal($file) {
+ 		$components = parse_url($file);
+ 		if(!isset($components['host']) && !isset($components['scheme'])) {
+@@ -64,6 +72,25 @@
+ 		return false;
+ 	}
+ 	
++    /**
++     * Check if file type is configured
++     *
++     * @param string $file
++     * @return boolean
++     */
++	function checkFileType($file)
++    {
++        $fileTypeList = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['http2_push'])['fileTypes'];
++
++        if (!strlen($fileTypeList)) {
++            $fileTypeList = 'css,js,jpg,png';
++        }
++        $fileTypes = GeneralUtility::trimExplode(',', strtolower($fileTypeList), true);
++        $extension = strtolower(end(explode('.', parse_url($file, PHP_URL_PATH))));
++
++        return in_array($extension, $fileTypes);
++    }
++
+ 	function getConfigForFiletype($file) {
+ 		$extension = end(explode('.', parse_url($file, PHP_URL_PATH)));
+ 		switch ($extension) {
diff -Naurw http2_push-0.3.3/ext_conf_template.txt http2_push/ext_conf_template.txt
--- http2_push-0.3.3/ext_conf_template.txt	2018-01-04 15:17:58.000000000 +0100
+++ http2_push/ext_conf_template.txt	2019-01-22 16:54:32.000000000 +0100
@@ -1,2 +1,6 @@
 # cat=basic/enable; type=string; label= Webserver Header Length Limit
 webserverHeaderLengthLimit = 8190
\ No newline at end of file
+# cat=basic/enable; type=string; label= File extensions for HTTP/2 push
+fileTypes = js,css,jpg,png
+# cat=basic/enable; type=string; label= File extensions for HTTP/2 push
+fileTypes = js,css,jpg,png
