tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dragan Sahpaski (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (TAP5-2201) Serious issue with assets and checksums - different for same file
Date Tue, 31 Dec 2013 10:11:52 GMT

    [ https://issues.apache.org/jira/browse/TAP5-2201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13859425#comment-13859425
] 

Dragan Sahpaski commented on TAP5-2201:
---------------------------------------

Howard, In commit 83847d0 you didn't include image/svg+xml which is also a font extension
and currently we're facing issues in cases where the svg file is gzipped. 

For example glyphicons-halflings-regular is also served as svg (besides eot, woff and tiff).
Excerpt from bootstrap.css where glyphicons-halflings-regular.svg is gzipped and the other
3 formats are not:
@font-face{font-family:'Glyphicons Halflings';src:url("/assets/meta/a81af715/tapestry5/bootstrap/fonts/glyphicons-halflings-regular.eot");src:url("/assets/meta/a81af715/tapestry5/bootstrap/fonts/glyphicons-halflings-regular.eot?#iefix")
format('embedded-opentype'),url("/assets/meta/b0153c27/tapestry5/bootstrap/fonts/glyphicons-halflings-regular.woff")
format('woff'),url("/assets/meta/534013db/tapestry5/bootstrap/fonts/glyphicons-halflings-regular.ttf")
format('truetype'),url("/assets/meta/zd792dbe6/tapestry5/bootstrap/fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular")
format('svg')}

Could you please add the following line to AssetsModule.disableCompressionForImageTypes(MappedConfiguration<String,
Boolean> configuration)
configuration.add("image/svg+xml", false); 

> Serious issue with assets and checksums - different for same file
> -----------------------------------------------------------------
>
>                 Key: TAP5-2201
>                 URL: https://issues.apache.org/jira/browse/TAP5-2201
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.4
>            Reporter: Magnus Kvalheim
>              Labels: 5.4.22
>         Attachments: bootstrap.server2.css, bootstrap.server3.css, server2.png, server3.png
>
>
> Hi everybody.
> Today we've launched a website based on 5.4. We're very exited about the upcoming release(5.4)
and I'll post separately about our experiences (mostly great).
> Post release we've identified a potential serious issue related to assets and their checksums.
> What we see is that a handful of the assets generate different hashes for the same file.
> =Example: bootstrap.css=
> Server 1: 
> /asset.gz/meta/92ffb14a/tapestry5/bootstrap_3_0_0/css/bootstrap.css
> Server 2:
> /asset.gz/meta/5787e482/tapestry5/bootstrap_3_0_0/css/bootstrap.css
> Server 3:
> /asset.gz/meta/f5e7c535/tapestry5/bootstrap_3_0_0/css/bootstrap.css
> Server 3 - restart:
> /asset.gz/meta/219ee41e/tapestry5/bootstrap_3_0_0/css/bootstrap.css
> We also see the same behaviour for the non gzip version of bootstrap.css.
> It is not only for /meta/
> =JCarouselWrapper.css=
> /asset/app/f59da774/mixins/ui/JCarouselWrapper.css
> /asset/app/6ddc92ee/mixins/ui/JCarouselWrapper.css
> As you can see - we're load balanced with app served from several nodes.
> Normally I'd serve these through CloudFront on a cookieless domain (with tapestry as
origin), but it's not possible as load balanced assets could hit 'wrong' server and get the
404 instead.
> So for now they are served through website domain with sticky sessions - and pray that
it don't cause us problems... :)
> All are served with same web container: 
> Apache Tomcat/7.0.39
> JDK 1.7.0_11



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message