1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-15 02:24:13 +02:00

Merge pull request #700 from turbulent/feat/allow-invalidation

This commit is contained in:
Elan Ruusamäe
2022-12-15 12:42:05 +02:00
committed by GitHub

View File

@@ -118,6 +118,7 @@ class Minify
'quiet' => false, // serve() will send headers and output 'quiet' => false, // serve() will send headers and output
'debug' => false, 'debug' => false,
'concatOnly' => false, 'concatOnly' => false,
'invalidate' => false,
// if you override these, the response codes MUST be directly after // if you override these, the response codes MUST be directly after
// the first space. // the first space.
@@ -284,6 +285,7 @@ class Minify
'lastModifiedTime' => $this->options['lastModifiedTime'], 'lastModifiedTime' => $this->options['lastModifiedTime'],
'isPublic' => $this->options['isPublic'], 'isPublic' => $this->options['isPublic'],
'encoding' => $this->options['encodeMethod'], 'encoding' => $this->options['encodeMethod'],
'invalidate' => $this->options['invalidate'],
); );
if ($this->options['maxAge'] > 0) { if ($this->options['maxAge'] > 0) {