-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ui5-middleware-cfdestination] OData v2 requests not triggered, seems cached (version >= 3.1.0) #905
Comments
Hi @qualiture , most probably the cache headers are proxied and not modified. I think this is in general the correct behavior but I could imagine to add an option to disable / remove the cache headers from the response. WDYT? Can you share the response headers of the cached response? |
Hi @petermuessig, thanks for the quick reply! And I think you are onto something... initially, I thought the request for
I found an old bug mentioning something similar for the Anyways, these are the response headers (left the uncached, working response, on the right the cached response) for the request for |
Hi @petermuessig, Now BAS has been updated to use node v20 instead of v18, I've been pressured to see if the more recent I did some further investigation, and indeed it seems the dependent http-proxy-middleware does not handle 304 responses correctly (see also chimurai/http-proxy-middleware#381) where the error is thrown when decompressing the response with Zlib Would it be possible to have an option to disable caching, so the response would be HTTP 200 instead of 304? |
Hi @qualiture , do you now use the |
yes, am already using the renamed |
Hi @petermuessig, As I was in the process of updating NPM dependencies, I felt rebellious, so I removed Is there any reason why we should use |
Hi @qualiture , the Sorry, I missed to follow-up this issue here. I can still look into the option to add a configuration to disable caching for the |
Hi @petermuessig, thanks for the clarification. |
Describe the bug
When using
ui5-middleware-cfdestination
version 3.3.10, upon initial running of the app withui5 serve
the OData v2 requests are not triggered (we use OData binding in XML view).To Reproduce
Refreshing the app (F5) will load the data, refreshing again will not. I.e. every 'odd' number of refreshes will load the date, every 'even' number of refreshes will not.
NB 1: In both cases, the
<destination>/v2/<my_service>/$metadata
request is loaded just fine.However, on every 'even' number of refreshes the
HEAD
request to<destination>/v2/<my_service>
is not triggered, and thus neither are the subsequent OData requests.NB 2: When disabling the browser cache with browser developer tools open, the OData v2 requests are triggered just fine, hence my suspicion it is cache related.
Expected behavior
OData request should be triggered upon initial load, and with every refresh of the app, like it did in version 3.0.1 and below.
The text was updated successfully, but these errors were encountered: