agea / CmisJS

A CMIS javascript library for node and browser
MIT License
38 stars 34 forks source link

Session Parameter - Caching #38

Open 4F2E4A2E opened 8 years ago

4F2E4A2E commented 8 years ago

Hello there!

How can one of the Session Parameters be set? We are interested in the CACHE_TTL_OBJECTS property and COMPRESSION.

Just passing it along with the user and password seems not to do the trick.

Any hint would help us alot, thanks in advance!

paulcpk commented 8 years ago

+1

agea commented 8 years ago

These parameters are available in OpenCmis, AFAIK they are not part of the CMIS specification.

The library does not provide any caching mechanism. So the parameter would be useless. I would be nice to have such functionalities, but at the moment it's out of scope

About HTTP compression, it's something that superagent should provide if you run in node.js, otherwise it's something controlled by the browser

4F2E4A2E commented 8 years ago

It would be great to have such mechanism, we are filtering every property already. We've checked that with superagent but it is still very slow.

Thank you a lot for your answer and guidance.

Cheers

Am 01.02.2016 um 17:24 schrieb Andrea Agili notifications@github.com:

These parameters are available in OpenCmis, AFAIK they are not part of the CMIS specification.

The library does not provide any caching mechanism. So the parameter would be useless. I would be nice to have such functionalities, but at the moment it's out of scope

About HTTP compression, it's something that superagent should provide if you run in node.js, otherwise it's something controlled by the browser

— Reply to this email directly or view it on GitHub.

paulcpk commented 8 years ago

I was able to achieve a great caching solution using this https://www.npmjs.com/package/apicache It's very easy to implement.