May 23, 2012 at 8:35 AM
Edited May 23, 2012 at 8:39 AM
I am having trouble with caching (assuming that it has something to do with cache)
I am using phonegap and datajs. first time accessing the page is alright it goes smoothly. But when it returns to the page that was accessed b4 it will have a 403 forbiden message. Due to that, we tried to clear data manually on android, then access the
application again then it works. But again on second time accessing the page trows us a 403 forbiden error.
For HTC it will not refresh to the updated list. But these codes that I am using, it works perfectly on iOs.
I am not sure why this is happening but normally I would get 403 only when the authentication token is invalid. However, in debuging the token has a value and the time the token is fetched till it is passed back is just a short time. therefore, it should
be the token's expired.
There is also another problem. When there is a post request to update data, it will also return a 403 (HTC and Samsung). but in iOs it works perfectly.
Does datajs stores cache automatically because, we did not save any cache in the application. Is there anyway to clear all cache without even saving it in the first place? Has this problem go something to do with datajs or phonegap or android?
Any advice and input is much appreciated... thank you.