Question

I'm working on an app, that's client side is written in angular.js.

It works perfectly EVERYWHERE, even in safari ... until I reload.

When I reload in safari the page renders blank, but here's the kicker - when I open up developer tools to debug i cant duplicate.

Once I close dev tools and refresh - blank.

I hope this question doesn't get closed due to its vagueness ... Hopefully somebody has experienced this in the past.

If it helps; the app communicates with a RESTful api which is "housed" on a subdomain.

Was it helpful?

Solution

It looks like safari simply ignores a 304 response and renders a blank body... I'm guessing that dnc253 and tasseKATT were right, in that the debug tools just disabled cache.

For some reason adding a fake meta header like <meta name="304Fix" content="safari-fix"> fixed the problem ... I have 0 understanding of why.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top