From 37421cc7f78730e642daf98d8993120cdbbe1a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Fri, 5 Jul 2019 11:42:57 +0200 Subject: [PATCH] Fix failing chash calculation for ajax urls --- .../ext/ep_products/Configuration/TypoScript/setup.typoscript | 2 +- public/typo3conf/ext/ep_products/ext_localconf.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/public/typo3conf/ext/ep_products/Configuration/TypoScript/setup.typoscript b/public/typo3conf/ext/ep_products/Configuration/TypoScript/setup.typoscript index 6f705efd..cf597b67 100644 --- a/public/typo3conf/ext/ep_products/Configuration/TypoScript/setup.typoscript +++ b/public/typo3conf/ext/ep_products/Configuration/TypoScript/setup.typoscript @@ -59,7 +59,6 @@ plugin.tx_epproducts { } } } - features.requireCHashArgumentForActionArguments = 0 } config.tx_extbase.persistence.classes { @@ -83,6 +82,7 @@ tx_epproducts_ajax_json { typeNum = 1701 config { disableAllHeaderCode = 1 + disablePrefixComment = 1 additionalHeaders.10.header = Content-type: application/json additionalHeaders.20.header = X-Robots-Tag: noindex, nofollow, noarchive xhtml_cleaning = 0 diff --git a/public/typo3conf/ext/ep_products/ext_localconf.php b/public/typo3conf/ext/ep_products/ext_localconf.php index 5a409b32..28e5f408 100644 --- a/public/typo3conf/ext/ep_products/ext_localconf.php +++ b/public/typo3conf/ext/ep_products/ext_localconf.php @@ -356,6 +356,9 @@ $GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'tx_epp $GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'tx_epproducts_searchresult[filterSettings]'; $GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'tx_epproducts_product_detail[filterSettings]'; $GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'tx_epproducts_reseller[reseller]'; +$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'tx_epproducts_ajax[months]'; +$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'tx_epproducts_ajax[month]'; +$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'][] = 'tx_epproducts_ajax[year]'; $GLOBALS['TYPO3_CONF_VARS']['LOG']['EP']['EpProducts']['Controller']['writerConfiguration'] = [ \TYPO3\CMS\Core\Log\LogLevel::INFO => [