How do I get <img> element images to be cached in Blackberry 10 Webworks app? - browser-cache

Is there some configuration setting I need to use to get Webworks (on BB10) to cache images served from a server?
I have a BB10 Webworks application that dynamically adds and remove html from the DOM. Images referenced in elements load as expected, but if the element is removed from the DOM and, later, added in again, Webworks reloads the image file from the server rather than using a cached version. (I can watch it happening in Web Inspector.)
If I run the same code in a Chrome browser on Windows, it behaves properly, using the cached copy of the image when the new element is added to the DOM.
The HTTP Resonse headers from the server are:
Cache-Control:public, must-revalidate
Content-Length:1730
Content-Type:image/jpeg
Date:Mon, 21 Oct 2013 21:18:34 GMT
ETag:c4863b363e4536f8d854d721092cf528
Expires:Wed, 20 Nov 2013 21:18:34 +0000
Last-Modified:Mon, 04 Feb 2013 17:20:13 +0000
MicrosoftOfficeWebServer:5.0_Pub
Server:Microsoft-IIS/6.0
X-Powered-By:PHP/5.2.13, ASP.NET
So, with the Response codes above, Chrome caches the image as expected, while BB10 Webworks reloads it from the server each time (no caching).
I'm running on a Blackberry Z10, Model number STL100-3, Software Release 10.1.0.4181, and the app is created using Blackberry 10 Webworks SDK 1.0.4.11.
What am I missing here?
Thanks,
Terry

Related

Safari doesn't load all resources of the webpage

I have a very weird problem with Safari opening my web app.
The setup: I am running an Vuejs application stored in a S3 Bucket on AWS. The app is exposed by an API Gateway.
The Problem: When opening the app only index.html and the favicon are loaded but not the other assets. Sometimes they occur inside the Network tab in dev tools with the message "Failed to load resource" but sometimes not.
"Solution": When I open the app with http (which doesn't work) and then with https again, the resources can be loaded somehow and the app will work fine even when reloading with cache clearing.
Does anyone know how to overcome this problem? 🤷‍♂️
I have a similar problem (not related to vue.js and amazon, but just to Subject: Safari selectively loads resources):
Mac OS Safari 14 (desktop version, I don't know for a mobile one) doesn't load all referred css, js, and image files.
Safari 13 performed well. Other browsers (Chrome, Firefox) perform well. All files are referred the same way, using relative URLs.
When using Safari 14, some of them are loaded, some are not. Caching is not an issue (I use "empty caches" before loading a page).
It looks like successfully loaded files are randomly chosen (the same file is sometimes loaded, sometimes it isn't).
In the Network tab of Develop menu, for not loaded files Preview says: "An error occurred trying to load the resource",
and in Headers, section "Request", there are only: Accept, Referer, and User-Agent lines, while:
GET, Cookie, Accept-Encoding, Host, Accept-Language, and Connection lines are missing.
Response says: "No response headers".
In the server's access log, there are no lines related to not loaded files.
EDIT:
The cause: TLS 1.0
The solution: TLS 1.2

A-Frame - to many assets?

I developed some kind of a Sound-Shooter in A-Frame.
It has actually 7 images and 13 Soundfiles (some between 3-5 MB) in a-asset.
Since november 2019 in my oculus go browser (also Firefox VR) i get the error "Please request the mobile version of this site, to see it in immersive mode". With inspector everything seems fine.
Are there any limitations?!
Addition: Message is from A-Frame. I also got this message on my mobile switching to desktop version of my html-site
Use A-Frame master and serve your content over HTTPS
Problem is gone without code change on my site (exactly how it came). I don't know if A-Frame or Oculus fixed his libraries.
Message has nothing to do with asset limitations. It's a message from A-Frame concerning rights on the website (DeviceMotion)

Firefox not displaying PDF in primefaces p:media component on a remote server

I have a JSF application that uses Primefaces 7.0. Some of its pages use the p:media component to display the content of PDF files. When installed on a remote linux server, the application does not show the content of the PDF if used with Firefox 67.0. It works fine with Chrome and IE. And it works perfectly on my Windows 10 PC, even with Firefox. To make it even wierder, inspecting the element makes it visible in my laptop, but not in my desktop computer. Has anyone else a similar problem? Please advice.
EDIT 11/11/2019: Today I learned that the problem occurs when using https instead of http. Therefore, it doesn't really matter that the server is remote; what happens is that on our remote (and public) server we use https

Outlook add-in deployed to Exchange Server on premises not loaded in macOS Safari

We have a Outlook add-in. When we deploy it to Office 365, everything is fine. All major browsers on Windows and Mac are working.
However, when we deploy the add-in manifest to Exchange Server 2016 on premises, the add-in is not loaded in Safari browser. All major browsers on Windows work, Chrome on Mac also works fine. Just Safari not working - after clicking the add-in icon, the custom task panel opens, but the content is not loaded. It's just blank, no spinner icon.
The JavaScript console shows some errors when the add-in is being opened, such as:
SyntaxError: Unexpected token '<' for file logon.aspx
Failed to load resource: the server responded with a status of 400, for file https://mail.xxxxxxx.com/owa/prem/15.1.1591.8/scripts/owa.clientnext.frepanel.js.map
Our Exchange server 2016 has latest CU so far (CU 11 of Oct 2018), and the Safari version is 12.0.2, running on macOS High Sierra version 10.13.6.
Is this a configuration issue on the server or client side? Any suggestions?
Thanks!

Video not working in IE 10 without compatibility view enabled

i am trying to embed a video on a web page using video.js.
The video should play on mayor browsers. On Chrome and Firefox it is working fine, but i can not make it work in IE 10 on my local machine (Server 2008 R2). My html code is 100% of the supplied demo.html which is also not working on IE 10. I used absolute urls for video source and added mime types for video formats and additional files in IIS. When i use the compatibility view button, the movie works.
The following error code is displayed in the IE 10 console.
Video Error,[object Object]
The video is also working fine when i use another computer (windows 7, with IE 10, and without compatibility view) to surf to my dev machine, so i assume i have a local problem.
How can i debug this?