I don't think we do any caching when you request a compile. can you
give more details? Maybe the cache headers are being set improperly on
the web server you're serving the code from?
Relatedly, fwiw, the closure-compiler.appspot.com is mostly there as a
demo service so you can try it out quickly. If you're looking for a
more robust way to do interactive development, you're probably better
off using plovr.org.
Sorry for the delay in responding; your message got caught in our spam
filter accidentally:
http://groups.google.com/group/closure-compiler-discuss/browse_thread/thread/90fc1f02e3ae7d4d
Nick
>BUMP< the closure REST api has a really sticky cache still. Any chance this is going to get fixed?
Can anyone provide a problem url? I suspect the problem is the file isnt configured to expire immediately (that has always been the problem in the past) but without a url we cant confirm that.
With the online version of the compiler... I found just adding random query string parameters resolved the caching issue :)
e.g. www.test.com/myjsfile.js?v=1
"v=1" 2,3,4,5,56....
Are you proving the entire source in the rest request? Not just a source url?
Thanks for your reply and I appreciate your help.I'm sorry. but I don't understand. How can I configure the file to expire immediately?.Do you mean by setting cache-control header in my http request to the rest api?Thanks again.
Right. It is the server hosting your url that is likely to including a cache header that allows it to be cached.
I'm sending file's url to http://closure-compiler.appspot.com in rest request as well as web interface. Finally, I've chosen to send a random query string parameter in my url. ('code_url', 'http://www.whatever.com/file.js?rp=ifuhasofd'). This way works fine. It is not very elegant, but it works.
Anyway, thanks for your help.