문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top