AngularJS app not saving data in IE 9,10 and 11 - angularjs

I have an application in AngularJS. We are about to launch it and QA just discovered that no data gets saved with IE versions 9,10 and 11. I see in network tab in console that the get request and post are sending the right data, but as soon as the user navigates away from the page and then goes back that data is no longer there. If the user logs out then logs back in the data displays correctly. In all other browsers there isn't any problem, only in IE 9,10 and 11.
Is there a plugin I need to be using to solve this? Anyone else ever have this problem and if so how to solve.

I solved this problem with Internet Explorer cacheing all the get requests by installing this module:
angular-cache-buster
If anyone else has this issue its an easy fix!!!

Related

React app get stuck on reload on Firefox desktop, but not on Chrome and other browsers

I have a create-react-app build being served by flask. It works fine in other browsers; however on Firefox, when I do a reload, the main.js file is stuck at the fetch method. After 3 minutes, it timesout then renders what it suppose to. I am looking for guidance on where to look from hereon. The production server does not log that the endpoint is receiving the fetch request; however, once the 3 minutes is up, the client side renders the updated information (as if it hit the server side). Everything looks like it should be working in the code I wrote, but I am not able scope out where I should be looking in debugging this issue.
Note: I am giving a broad description of the problem at the moment, but will disclose specifics such as codes, logs, and others items once I am able to get some guidance of the matter. As of now, there are no resources pointing out this specific issue, thus displaying code will simply be a "garbage" dump.
After working on the problem for quite some time, we found these two articles to be very helpful:
https://www.andreasreiterer.at/fix-whitescreen-static-react-app/
https://blog.miguelgrinberg.com/post/how-to-deploy-a-react--flask-project
After testing different sources, we first found that article one's suggestion of changing the homepage to the base url worked. After realizing that the nginx was getting confused on which static files to server, we proceeded to follow article 2's steps.
We did not have any issues on other browsers, but only on firefox. I hope this will help those that are experiencing the same Firefox issue.

Devices created with smart-home-java sample always offline

I have created a couple of devices using the https://github.com/actions-on-google/smart-home-java sample project. I have also successfully linked my account and see these devices in my Google Home app. I am also able to click on a "On" or "Off" button next to the Lamp device, and I see the value change in Firestore.
However, when I click on the device it says "Not responding" on the top and "Offline" in the middle of the screen. I do not see any errors in the "smart-home-java" server logs.
Has anyone else experienced something similar? How should I approach debugging this?
As mentioned briefly in the comments, this is likely because your project is failing to successfully call Report State. The most likely cause of this is that your Home Graph API credentials are missing or incorrect.
In the current sample code, an error in this method call will cause the handler to return deviceOffline from a QUERY. You can also comment out or remove this line to debug the issue.

I can access my heroku app live but my friends see only white blank page?

please check my app - https://real-estate-web-app.herokuapp.com
the app is accessible in chrome only I open the app with another browser it shows me a white blank page.
and please share the solution.
I tried all online solutions but no help
I want to share the app with the client and my friends for testing.
I was able to open up the app in both Chrome and Firefox, loading just fine. Only thing I noticed was something odd with the Google Map API's, message about it receiving too many calls to the API. Also I believe by default Heroku has a "sleep" type setting, so the page doesn't stay loaded if the URL hasn't been visited recently; basically it pings the server and tells it to wake back up and then process the request and load the app. This may result in like a 10-15 second load time the first time hitting the page.

localhost serving old file saves

First, I apologize that I don't fully understand what's going on here. I am new to AngularJS and I am building an app that I am running on localhost:3000. I make changes to my files, and I refresh the localhost:3000 page.
But after a few times of doing this, my changes do not get passed to the server.
Upon inspecting the developer tools, I see that it is using an older version of the file that I have overwritten with new code. No matter how many times I refresh the page, the changes do not get passed to the server.
If I come back after a few hours, it gets all the changes like it should. But only the first time, because every time after that I have the same problem.
I've tried restarting the http-server, I've tried closing and opening the editor, closing and opening the tab, restarting my computer, but none of these fixes the problem permanently.
If you need any more information, I'll edit it into this question. Thanks!
Try clearing your browser cache
Either
ctrl + f5
or
Right click on refresh button and choose the last option (hard reload)
(only in chrome, I guess)
That's almost certainly a caching issue.
You need to look at the network traffic when the page is downloading.
How you do that will depend on the browser you use, but try pressing F12 for a start
Check the RESPONSE headers for anything "cache"
Also check for a Status code of 304 - "Not Modified"
That might reveal to you instructions from the server to the browser to cache the file for a few hours, or that the browser is being told the copy it has is up to date.
Alternatively it might be server side caching, in which case I can't help you much.
One other solution is to change the file reference to include the date modified as a query string.
e.g.
instead of
src="/scripts/myscript.js"
use
src="/scripts/myscript.js?dt={filemodifieddateformyscripts.js}"

Cakephp, weird performance issues

I've asked this question all over the web, but nobody has replied so far.
I have a Cake app on a live server. The problem is everything seems to be cached.
Let's say you're on the index page, hit "delete" link to delete a record, and you're redirected back to the index. The "deleted" record is still shown. If you hit the refresh button, the record is no longer shown and the flash message appears.
And it's like this all over the site.
I've disabled caching in config/core.php, sessions are pure cakephp (works the same with database and php sessions), debug is 0.
Server is PHP5.
Any idea is welcome!
What is your browser? I use Opera and I admit it doesn't manage the cache the way I'd want it to. I have to refresh, while Firefox works perfectly (or at least reload the page the way I'd expect it to while I'm debugging)
(from twitter #IvanBernat) have you tried to add meta tag for killing browser cache? use firebug and see if browser get 304 code for your file

Resources