You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
I have a situation where the page is being rendered both from the server and both from the browser. I am doing an HTTP call to get content from server.
getContent(): Observable<someObject>{
console.log(`Getting content by ${this.platformId}`);returnthis.http.get<someObject>('someurl');}
When I hit the page, I am able to see "Getting content by server" and "Getting Content by browser". This is causing me an issue whenever I hit the page directly ("CTRL+ F5") because on the browser I am caching the response. Thus, if the value on the server is changed, I will first receive the updated server-side content and then it will switch to the cached content of the browser, causing an undesired flickering effect on the page.
How could I avoid such a situation?
The text was updated successfully, but these errors were encountered:
I have a situation where the page is being rendered both from the server and both from the browser. I am doing an HTTP call to get content from server.
When I hit the page, I am able to see "Getting content by server" and "Getting Content by browser". This is causing me an issue whenever I hit the page directly ("CTRL+ F5") because on the browser I am caching the response. Thus, if the value on the server is changed, I will first receive the updated server-side content and then it will switch to the cached content of the browser, causing an undesired flickering effect on the page.
How could I avoid such a situation?
The text was updated successfully, but these errors were encountered: