Hey Unirgy,

Seeing how this was quite some time ago, I'm not expecting a response, but 
I would very much appreciate knowing if you ever figured what was causing 
the template load error for you? We are experiencing it sporadically but it 
has been difficult to reproduce. Thanks!

On Saturday, July 16, 2011 at 1:05:10 AM UTC-5, Unirgy wrote:
>
> Yep, I was getting errors in console for some templates that said
> response code 304.
> I'll send screenshot the next time it happens.
>
> On Sat, Jul 16, 2011 at 12:46 AM, Igor Minar <[email protected] 
> <javascript:>> wrote:
> > +1 it should just work.
> >
> > On Fri, Jul 15, 2011 at 9:28 PM, Misko Hevery <[email protected] 
> <javascript:>> wrote:
> >>
> >> Hi Unirgy,
> >> I am not sure I understand your issue. Are you saying that the server
> >> responds with 304, but the browser XHR responds as error? i think XHR 
> should
> >> handle that automatically.
> >> I checked: http://www.w3.org/TR/2009/WD-XMLHttpRequest-20091119/
> >>
> >> For 304 Not Modified responses that are a result of a user agent 
> generated
> >> conditional request the user agent must act as if the server gave a 200
> >> OKresponse with the appropriate content. The user
> >> agent must allow setRequestHeader() to override automatic cache 
> validation
> >> by setting request headers (e.g., If-None-Match, If-Modified-Since), in
> >> which case 304 Not Modified responses must be passed through. [RFC2616]
> >>
> >> So 304 should be transparent to  angular. What browser are you seeing 
> this
> >> on?
> >> -- Misko
> >>
> >> On Fri, Jul 15, 2011 at 7:40 PM, Unirgy <[email protected] <javascript:>> 
> wrote:
> >>>
> >>> I understand why AngularJS considers 304 status as an error - there's
> >>> no content in response and there's no way to access browser local
> >>> cache from JS.
> >>>
> >>> Is there a way in the library not to send any cache related headers so
> >>> server side tampering is not required?
> >>>
> >>> Are there any plans to implement persistent local cache for templates
> >>> utilizing JS local storage API?
> >>>
> >>> Thanks.
> >>>
> >>> --
> >>> You received this message because you are subscribed to the Google 
> Groups
> >>> "angular" group.
> >>> To post to this group, send email to [email protected] 
> <javascript:>.
> >>> To unsubscribe from this group, send email to
> >>> [email protected] <javascript:>.
> >>> For more options, visit this group at
> >>> http://groups.google.com/group/angular?hl=en.
> >>>
> >>
> >> --
> >> You received this message because you are subscribed to the Google 
> Groups
> >> "angular" group.
> >> To post to this group, send email to [email protected] 
> <javascript:>.
> >> To unsubscribe from this group, send email to
> >> [email protected] <javascript:>.
> >> For more options, visit this group at
> >> http://groups.google.com/group/angular?hl=en.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "angular" group.
> > To post to this group, send email to [email protected] 
> <javascript:>.
> > To unsubscribe from this group, send email to
> > [email protected] <javascript:>.
> > For more options, visit this group at
> > http://groups.google.com/group/angular?hl=en.
> >
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to