Comments (6)
is it possible to custom the js name and then generate a cache file in file
system? i think it will be good to cache in proxy server and distributed system
Original comment by [email protected]
on 3 Oct 2011 at 10:50
from granule.
Surely you could achieve this by using a url rewriter...
http://code.google.com/p/urlrewritefilter/
Original comment by [email protected]
on 9 Nov 2011 at 2:23
from granule.
We encountered that issue too. That's an important feature for granule because
without that, most of proxies will cache only one combined.js for the entire
application :)
So, we patched granule to add an option for having .js like that:
/combined/XXXXXX.js
I can submit the patch or commit code into repository if you're interested.
Pascal
Original comment by [email protected]
on 6 Apr 2012 at 7:58
from granule.
please share your patch
Original comment by [email protected]
on 21 Feb 2013 at 1:49
from granule.
It would be really useful to be able to change the context path of
/combined.css and /combined.js to /mycustomcontextpath/combined.css
Thanks
Original comment by [email protected]
on 1 Mar 2013 at 4:27
from granule.
Hello,
Since my last comment, I made several modifications to granule so I have no
patch that will only fix the issue mentionned below.
I made a gzipped tar of my modifications that include :
- The ability to rename the pattern from /combined.js?id=XXXX to
/combined/XXXX.js
- The ability to specify JavascriptRewriter and CSSRewriter in configuration
file. I needed to make some treatments on JS and CSS files before packing them.
- I've introduced a serverName parameter into IRequestProxy in order to have
different signatures for different server names (we have several domain names
behind a single web application and it caused issues).
- Fixed an issue for not renaming file names starting with / ( I don't remember
the issue exactly, it could be safer to avoid that :) , I modified
CSSHandler.java).
Sorry for not providing a patch, I hope it helps.
Please note that I moved granule.properties to
/WEB-INF/classes/com/granule.properties, so I modified the TagCacheFactory
file:
public final static String PRODUCTION_PATH = "/WEB-INF/classes/com/granule.properties";
In fact, I do not use the initialization like that because we instantiate
directly CompressorSettings.java
Granule may a have a way to customize the configuration file.
By the way, it's in production since 1 year now.
Original comment by [email protected]
on 22 Apr 2013 at 7:14
Attachments:
from granule.
Related Issues (20)
- JSF 2.0 facelet support HOT 2
- Add OSGi support
- Granule not working with jquery mobile
- granule does not work in a multi app-server environment HOT 3
- "jsessionid" attribute added to CSS and JS links HOT 3
- For me its not working HOT 4
- Minor bug with URL rewriting in CSS HOT 3
- Corrupted JS - problems with comments vs regex // HOT 1
- Granule is not maven HOT 2
- File size not getting reduced
- unexpected token function (a JavaScript error when using granule:compress) HOT 1
- Non-exploded deployment leads to NPE HOT 1
- Client side loaded combined.css empty
- Question on Caching HOT 2
- Can be setup to preserve license headers of JS libraries? No documentation.
- Encountered StackOverflow error if CSS has Base64 encoded images. HOT 4
- css file belong to same group is not taken from cache
- Cache file location
- Button in Primefaces doesn't render icones from its external css in background-image.
- unable check ressources
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from granule.