Skip to content

Commit d18e5ee

Browse files
linawolfbrotkrueml
andauthored
[!!!][TASK] Remove FE & BE HTTP response compression (#6158)
* [!!!][TASK] Remove FE & BE HTTP response compression Resolves: TYPO3-Documentation/Changelog-To-Doc#1426 Releases: main * Update Documentation/Configuration/Typo3ConfVars/FE.rst Co-authored-by: Chris Müller <2566282+brotkrueml@users.noreply.github.com> * [!!!][TASK] Remove FE & BE HTTP response compression Resolves: TYPO3-Documentation/Changelog-To-Doc#1426 Releases: main --------- Co-authored-by: Chris Müller <2566282+brotkrueml@users.noreply.github.com>
1 parent 2ef903f commit d18e5ee

File tree

3 files changed

+18
-30
lines changed

3 files changed

+18
-30
lines changed

Documentation/Configuration/Typo3ConfVars/BE.rst

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -453,22 +453,14 @@ The following configuration variables can be used to configure the TYPO3 backend
453453
.. confval:: compressionLevel
454454
:Path: $GLOBALS['TYPO3_CONF_VARS']['BE']['compressionLevel']
455455
:name: globals-typo3-conf-vars-be-compressionLevel
456-
:type: text
457-
:Default: 0
458-
:Range: 0-9
459456

460-
Determines output compression of BE output. Output is smaller but
461-
page generation slows down depending on compression level. Requires
457+
.. versionchanged:: 14.0
462458

463-
* zlib in your PHP installation and
464-
* special rewrite rules for :file:`.css.gz` and :file:`.js.gz`
465-
(before version 12.0 the extension was :file:`.css.gzip` and :file:`.js.gzip`)
459+
Backend HTTP response compression has been removed. Response compression
460+
should be applied by web servers and not by the application layer.
466461

467-
Please see :file:`EXT:install/Resources/Private/FolderStructureTemplateFiles/root-htaccess`
468-
for an example. The range is `1`-`9`, where `1` is least
469-
compression and `9` is greatest compression. Setting the value to :php:`true`
470-
will set the compression based on the PHP default settings (usually `5` ). The
471-
recommended and most optimal value is `5`.
462+
See also: `Breaking: #107943 - Frontend and backend HTTP response
463+
compression removed <https://docs.typo3.org/permalink/changelog:breaking-107943-1761860828>`_
472464

473465
.. _typo3ConfVars_be_installToolPassword:
474466

@@ -639,10 +631,6 @@ The following configuration variables can be used to configure the TYPO3 backend
639631
mode. Also, fieldnames are appended to field labels. Use
640632
this to debug the backend only!
641633

642-
Disables the
643-
:ref:`$GLOBALS[TYPO3_CONF_VARS][BE][compressionLevel] <typo3ConfVars_be_compressionLevel>`
644-
setting.
645-
646634
.. _typo3ConfVars_be_HTTP:
647635

648636
.. confval:: HTTP

Documentation/Configuration/Typo3ConfVars/FE.rst

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,22 @@ the TYPO3 frontend:
6060
.. confval:: compressionLevel
6161
:Path: $GLOBALS['TYPO3_CONF_VARS']['FE']['compressionLevel']
6262
:name: typo3-conf-vars-fe-compressionLevel
63-
:type: int
63+
:type: text
6464
:Default: 0
65+
:Range: 0-9
66+
67+
Defines the compression level used for **frontend resource pre-compression**
68+
(JavaScript and CSS files) when combined with the TypoScript settings
69+
`config.compressJs <https://docs.typo3.org/permalink/t3tsref:confval-config-compressjs>`_
70+
and `compressCss <https://docs.typo3.org/permalink/t3tsref:confval-config-compresscss>`_.
6571

66-
Determines output compression of FE output. Makes output smaller but
67-
slows down the page generation depending on the compression level. Requires
72+
.. versionchanged:: 14.0
6873

69-
* zlib in your PHP installation and
70-
* special rewrite rules for :file:`.css.gz` and :file:`.js.gz`
71-
(before version 12.0 the extension was :file:`.css.gzip` and :file:`.js.gzip`)
74+
Frontend HTTP response compression has been removed. Response compression
75+
should be applied by web servers and not by the application layer.
7276

73-
Please see :file:`EXT:install/Resources/Private/FolderStructureTemplateFiles/root-htaccess`
74-
for an example. Range `1`-`9`, where `1` is least
75-
compression and `9` is greatest compression. :php:`true` as value will set the
76-
compression based on the PHP default settings (usually `5` ). Suggested and
77-
most optimal value is `5`.
77+
See also: `Breaking: #107943 - Frontend and backend HTTP response
78+
compression removed <https://docs.typo3.org/permalink/changelog:breaking-107943-1761860828>`_
7879

7980
.. _typo3ConfVars_fe_pageNotFoundOnCHashError:
8081

Documentation/Security/GuidelinesAdministrators/_codesnippets/_nginx.config

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ server {
9999

100100
# Compressing resource files will save bandwidth and so improve loading speed especially for users
101101
# with slower internet connections. TYPO3 can compress the .js and .css files for you.
102-
# *) Set $GLOBALS['TYPO3_CONF_VARS']['BE']['compressionLevel'] = 9 for the Backend
103-
# *) Set $GLOBALS['TYPO3_CONF_VARS']['FE']['compressionLevel'] = 9 together with the TypoScript properties
102+
# *) Set the TypoScript properties
104103
# config.compressJs and config.compressCss for GZIP compression of Frontend JS and CSS files.
105104
location ~ \.js\.gzip$ {
106105
add_header Content-Encoding gzip;

0 commit comments

Comments
 (0)