Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SAPUI5 cache control issue

Hallo Everyone,

I have an issue with the cache. When you first run the application it downloads files from a server to the cache, for example 'trc.css' file:

During each next opening of the application it retrieves these files from the cache, instead of checking whether or not they have been changed and retrieve them (when it's needed) from the server.

I have noticed that, for example, if I load the same file using <link href="css/trc.css" type="text/css" rel="stylesheet" />,  a mechanism 304 not modified runs well (when nothing has been changed I get 304 response):

...but when I use (or in general it gets this file all the time from cache ('200 from the cache' response), despite any changes in the file, and for this reason many times the file is being downloaded as a outdated, and I have to remember to clear the cache...

Is there any possibility to force 304 mechanism (or any similar, which would control the cache) running using sapui5?

Best regards,

Tomasz Sobkowiak


Helpful Answer

Not what you were looking for? View more on this topic or Ask a question