conecto/neos-compressor

Output compression for Neos CMS

Installs: 757

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:typo3-flow-package

1.0.1 2016-04-06 08:21 UTC

This package is not auto-updated.

Last update: 2024-04-13 15:56:10 UTC


README

This package enables gzip/deflate compression for the Neos output. Additionally, the head and body section HTML of the TYPO3.Neos:Page prototype is being minified using the compressor of wyrihaximus/html-compress (borrowed from flownative/neos-compressor)

Installation

composer require conecto/neos-compressor

Usage

Just install it, there are no further steps to take.

Adjust compression

To disable the HTML minification/compression on head and/or body, simply override:

prototype(TYPO3.Neos:Page) {
	head.@process.compression >
	body.@process.compression >
}

To compress specific parts, use the compression helper like this:

something.@process.compression = ${CONECTO.Compressor.compress(value)}