Backendless Support
 
Known

Android File Service HTTP Response Headers - no-cache?

Hello,

I've uploaded some images via file service api (Android Java) into the file section of backendless. In my application I want to check the tag max-age in Cache-Control Header. Only if a certain value is exceeded I want to download the image again, to make the application faster and reduce traffic. My caching function seems to work - but unfortunately not with my files at backendless. All files in backendless file section have the following Headers related to cache

Cache-Control: no-cache

Cache-Control: no-store, no-cache, must-revalidate, private

Pragma: no-cache

Is there a way to change those file headers either in backendless or when uploading files via android API?

Any help would be much appreciated.

Thank you very much for your strong support!

Michael

Leave a Comment

Comments (1)

photo
1

Hi Michael,

Currently, it is not possible to "attach" a specific caching policy for your files in Backendless (by that I mean a mechanism to return specific caching headers along with your files). This is something we considered for a future version of the service, but there are no firm plans for the feature yet.

Regards,

Mark