Code Monkey home page Code Monkey logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
please share your patch

Original comment by [email protected] on 21 Feb 2013 at 1:49

from granule.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.