changcheng / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

Properties place holder processor should be invoked for every unique request not just the group name. #488

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Have an EL expression in a css .... say 
background:(${protocol}.xxx.com/blah.gif);
2.Have a link in your page ... say <link rel="stylesheet" type="text/css" 
href="path/to/your/<groupname>.css"/>
3.Configure a place holder processor and setup the properties object 
4.Access your application using https protocol
5. IE complains about the mixed mode content (http and https) as the cached css 
will be resolved to http://xxx.com/blah.gif and the current protocol is https.

What is the expected output? What do you see instead?
properties object should be created for every unique request and EL should be 
evaluated to the correct value. .. https in this case. I see http path to the 
image.

What version of the product are you using? On what operating system?
1.4.7 wro on CentOS and Windows vista.

Please provide any additional information below.

Original issue reported on code.google.com by dinakar....@ihg.com on 12 Jul 2012 at 3:41

GoogleCodeExporter commented 9 years ago
This feature will be available as a part of issue465 which allows custom cache 
key computation.

Currently cache key uses the following attributes: groupName, resourceType, 
minimize flag. 

When the feature will be available, you'll be able to use additional attributes 
as a part of cache key. 
As a side effect, all processors will be invoked for every unique request (aka: 
unique cache key), not just PropertiesPlaceholderProcessor.

Original comment by alex.obj...@gmail.com on 13 Jul 2012 at 6:44