Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

SAPUI5 cache control issue

$
0
0

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:

 

01.jpg

 

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.

 

02.jpg

 

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):

 

03.jpg

 

...but when I use jQuery.sap.includeStyleSheet (or in general jQuery.sap.require) 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


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>