[
http://jira.magnolia-cms.com/browse/MAGNOLIA-2495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19735#action_19735
]
Jan Haderka commented on MAGNOLIA-2495:
---------------------------------------
bq. Btw gzip configuration should be centralized (used by both the cache and
gzip filter). It must not necessarily bypass the cache (if the cache serves the
plain content in that case).
The issue here is completely different configuration mechanism used by gzip and
by cache. GZip relies completely on the filter bypass logic to decide when to
fire and when to skip, while cache needs to kick in even when content should
not be compressed and has to decide only later when storing content in the
cache and again when serving it from the cache.
It is actually even more convoluted:
- {{GZipFilter}} relies on its bypass configuration and on value returned by
{{RequestHeaderUtil.acceptsGzipEncoding(request)}}
- {{Store}} executor relies on its list of compressible content types to
instruct {{CachedPage}} whether to compress content in the cache
- {{UseCache}} executor relies on the
{{RequestHeaderUtil.acceptsGzipEncoding(request)}} and on the fact that content
in the cache is zipped (or not)
We could perhaps streamline it by letting both {{Store}} executor and
{{GZipFilter}} to use same set of Voters to decide if content should be gzipped.
If we do this, there is still the problem where/how to check and decide on the
compression based on the User-Agent. If we harmonize the configuration as
described above, then we have a problem since in this case we want to have
content compressed by {{Store}} executor, but skipped {{GZipFilter}} and by
{{UseCache}} so the voter would not work here.
> Add voter to selectively switch off the gzip compression based on user agent
> ----------------------------------------------------------------------------
>
> Key: MAGNOLIA-2495
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2495
> Project: Magnolia
> Issue Type: Improvement
> Components: cache
> Affects Versions: 3.6.3
> Reporter: Jan Haderka
> Assignee: Jan Haderka
> Fix For: 3.6.x, 4.0
>
>
> Due to issues with IE6, implement change cache configuration to selectively
> disable gzip compression for JS and CSS resources. Doing so allows to work
> around buggy gzip support in IE6 without having to switch off the compression
> or caching completely.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
----------------------------------------------------------------