Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Highlighted
New Developer
Posts: 1
Registered: 2 weeks ago
My Device: BB10
My Carrier: Rogers

Web APP compression / caching issue

Hi everyone,

 

We've built a web app using clojurescript / OM. OM is a clojurescript wrapper around react.js. Data is sent back and forth using websockets.

 

The application is loaded via an ordinary script tag. However, on the BB10 (and several other Blackberry devices) the application downloads but errors. We have used web inspector to get the error and view the request / response headers and it appears to be a caching and/or compression error.

 

Screen shot 1

The actual javascript error is "Directive w is undefined" But take a look at the headers. The request has no Accept-Encoding header. It also has no Cache header. The response indicates that it is gzipped, however, the content length indicates that it is not actually gzipped.

 

Screen shot 2

Check out the second screen shot. We clicked on "Sources" and enabled debugging. When you do that the Browser adds the request header Cache: max-age=0 and presto it works!

 

Why would it work in debugging mode?

Why is there no request header for Accept-Encoding?

 

Sorry guys can't attach the screen shots. I can send them to anyone that needs them.

 

Cheers,
Stephen