Export to GitHub

wro4j - issue #929

wro4j-runtime-taglib does not include hashed fileName to refer to resource in browser


Posted on Aug 7, 2015 by Happy Horse

What steps will reproduce the problem? 1. Followed documentation to include wro4j-runtime-taglib (https://github.com/wro4j/wro4j-runtime-taglib)

  1. Update property files

managerFactoryClassName=ro.isdc.wro.manager.factory.ConfigurableWroManagerFactory preProcessors=cssUrlRewriting, cssImport,semicolonAppender

Finger Printing

hashStrategy=MD5 namingStrategy=hashEncoder resourceUriStrategy=versioned

  1. Build time wro4j surely generates files with hash value in name. But browser does not show new hashed name. Instead it shows group-name.css or group-name.js.

From wro4 doc: DefaultHashEncoderNamingStrategy - encodes a hash into file name, where hash is generated based on resource content. By default the CRC-32 algorithm is used to compute the hash, but this can be easily switched with other algorithms. When this strategy is used, the all.css can renamed to something like all-253f2eba.css, where 253f2eba is a CRC-32 checksum of the css resource.

What is the expected output? What do you see instead? I was expecting browser will refer to css file as "all-253f2eba.css" but its referring to it as "all.css".

What version of the product are you using? On what operating system? wro4j 1.7.8

Please provide any additional information below.

Comment #1

Posted on Aug 15, 2015 by Massive Monkey

The project was migrated to a different location. Please, open any issue at this location: https://github.com/wro4j/wro4j/issues

Also, if the problem is related to wro4j-runtime-taglib, open the issue for that particular module.

Status: New

Labels:
Type-Defect Priority-Medium