On Jul 11, 2013, at 12:34 PM, chrysn firstname.lastname@example.org wrote:
On Thu, Jul 11, 2013 at 12:24:51PM +0200, Ján Máté wrote:
I have plan to use HTML5 "offline cache" in future (there are lot of problems with the current implementations in different browsers)
do you think it would be feasible to leverage the web browser's cache on the REPORT queries (based on ETag / If-None-Match)? that would only hit the cache if the address book was not changed *at all* since the last access, but would give great speedup in those cases.
Yes, this is exactly what I want ... offline storage in browser (with encryption), this feature is on my long term roadmap.
If you want a "default" user then why it is a problem to add this user to URL?
the original scenario i thought of would have involved individual users, but as it's more difficult, i can resort to such a default user option.
that would make implementation in cardavmate easier in the first place; we could fiddle with the details later, i'd just need help with the original hook.
With globalAccountSettings and default user it is very simple ... it requires changes only in 1-2 functions ... good starting point is the selectActiveAddressbook function (it selects the default addressbook /if it is set in settings/ or the first addressbook) and if it is loaded your need to call only the loadContactByUID (or generate an onclick event on the specified contact + you can generate another onclick event on edit button or anything else) ...
best regards and thanks for your fast responses chrysn
-- I shouldn't have written all those tank programs. -- Kevin Flynn