simplicityitself / grails-gwt

New Grails GWT Plugin
Other
23 stars 18 forks source link

Resouce Plugin integration #38

Open confile opened 10 years ago

confile commented 10 years ago

It would be great to have the output of the grails-gwt plugin be handles by the resource plugin.

Do you see any case how to achieve this? I would like to zipped resources to zip the gwt js files.

daviddawson commented 10 years ago

I haven't looked into the internals of the resources plugin in a while. I know that there is a certain amount of interference between the two plugins, and so if you look through the mailing list, you will see some workarounds on excluding the gwt resources from being handled by the resources plugin. It is not, currently, compatible.

The thing with the GWT JS is that there are some files that are safe to be long cached, and others that must never be cached at all, we'd need some king of setup to integrate them. Ideally we'd integrate with the asset pipeline plugins as well, as they seem to use quite a different model.

Contributions welcome.

confile commented 10 years ago

@daviddawson Well, lets make it simple. It would be a big improvement if you could assure that the GWT js files are zipped. How do you handle this. It is even for mobile very important.

daviddawson commented 10 years ago

On the apps I manage I tend to include a raw servlet Filter that manages all of the caching rules across the entire application in a very fine grained way, GWT or not.

The fact that I do that is the primary reason I have never implemented anything in the GWT plugin, and no one else has contributed anything else.

daviddawson commented 10 years ago

Oh, and use nginx/ apache transparent zipping. low tech, yes, but that's how its done on the apps I use, and is then fully compatible with non gzip capable clients

confile commented 10 years ago

okay great thanks!