Skip to content

Added cache control to fix bug with internet explorer not updating UF table data#884

Closed
aminazirani wants to merge 1 commit intouserfrosting:masterfrom
aazirani:master
Closed

Added cache control to fix bug with internet explorer not updating UF table data#884
aminazirani wants to merge 1 commit intouserfrosting:masterfrom
aazirani:master

Conversation

@aminazirani
Copy link
Copy Markdown

I was using UserFrosting to implement a software solution for a client of mine and it turned out that they were Internet Explorer fans. This was when I realized that UF tables did not work well in IE 11 and possibly Edge.
After debugging for some time, I came to the conclusion that this was because of the cache headers. I believe it is generally a good idea to set cache headers to disabled for API requests that would update frequently. So I set the cache headers for all Sprunje (Json) functions to "no-cache".
This fixed the IE problem which was a significant compatibility issue for UserFrosting.

@Silic0nS0ldier
Copy link
Copy Markdown
Member

Silic0nS0ldier commented May 28, 2018

no-cache isn't bullet proof BTW. Not sure about the specifics, but recently I hit some cases were caching still occured. no-store would be a better choice as absolutely nothing is cached.

@Silic0nS0ldier
Copy link
Copy Markdown
Member

This has been superseeded by #922

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants