Application Cache Error event: Invalid manifest mime type (application/x-ms-manifest) - manifest

I'm on a shared server, and am using
<html manifest="cache.manifest">
and am getting:
Application Cache Error event: Invalid manifest mime type (application/x-ms-manifest) http://www.phillipsenn.com/xxx/cache.manifest
Is this something that my hosting company will have to change?

Looks like your web server is IIS (Internet Information Server)
The default MIME extension ".manifest" is reserved for ClickOnce deployment (read http://robindotnet.wordpress.com/2010/06/12/mime-types-for-clickonce-deployment/)
You can use a different extension for your cache, for example ".mf", but your web server needs to know about its MIME type. In the case of Microsoft IIS, it needs to be added to the MIME Types table:
Extension: .mf
MIME Type: text/cache-manifest
Once you register the new exception you can rename your manifest file, and update the Markup:

Related

http 404 error in eclipse

got this error when i created a single html page and i have also have another web project in eclipse
HTTP Status 404 - /Angular/
type Status report
message /Angular/
description The requested resource is not available.
Apache Tomcat/7.0.82
HTTP Status 404 - /Angular/
type Status report
message /Angular/
description The requested resource is not available.
Apache Tomcat/7.0.82
When deploying a server in eclipse, ensure that you've added your eclipse project as a web module to the server. To see that on your existing server, double click it, and go to the modules tab.
Now, take note of the path at which you've deployed the module. You may need to change that path to /Angular instead of your eclipse project name.

as3-websocket-server with https connections

I downloaded the library as3-websocket-server for a desktop AIR app and it works fine on Chrome.
When I use Firefox it is ok for HTTP pages, while I get an error message if I test it on HTTPS pages:
SecurityError: The operation is insecure."
I read that I should use wss:// rather than ws://, but the AIR server doesn't work with this protocol.
I tried to convert all "Socket" to "SecureSocket" in the Air App but I get an error:
1118: Implicit coercion of a value with static type flash.net:Socket
to a possibly unrelated type flash.net:SecureSocket
Any idea on how to have the server available for both protocols? On the client side I could just check if I'm on HTTP or HTTPS and call the right websocket.
Thanks

History and XHR issues with Sails running on localhost

With the default configuration, I am unable to make XHRs in my Mithril app if I run its Sails server in localhost. All I get is:
XMLHttpRequest cannot load http://localhost:1337/json/test-realms.json. The 'Access-Control-Allow-Origin' header contains the invalid value ''. Origin 'null' is therefore not allowed access.
If I enable CORS with allRoutes: true, origin: '*' that problem goes away, and instead I get:
DOMException: Failed to execute 'replaceState' on 'History': A history state object with URL 'http://localhost:1337/#!/' cannot be created in a document with origin 'null'.
What exactly is the issue here?
Updates:
I am using sails lift as server.
The web app is loaded via http://test.pink. The domain is set to a LAN IP via the HOSTS file.
No resources are loaded via file:/// or localhost.
Turns out the problem was related to Content Security Policy. I had set sandbox 'allow-scripts' 'allow-forms', which as per this and this would treat the page as an iframe with an unique origin.
Disabling the sandbox policy or adding allow-same-origin suffices to fix it.

Exporting CEP definition file from the authoring tool to an (external) repository

We are having problems with the exporting of the CEP definition file from the authoring tool to an (external) repository.
In the response preview from the developer tools of the browser we get the following error message:
"HTTP Status 500 - A javax.ws.rs.ext.MessageBodyReader implementation was not found for class org.apache.wink.json4j.JSONArray type and text/html;charset=utf-8 media type. Verify that all entity providers are correctly registered. Add a custom javax.ws.rs.ext.MessageBodyReader provider to handle the type and media type if a JAX-RS entity provider does not currently exist."
How can we make sure we are able to export to an external repository?
Your problem is that the external repository is not available.
Since you didn't mention this, my guess is that you are using the default external repository which is http://localhost:8080/ProtonOnWebServerAdmin/resources/definitions
but don't have a running instance of ProtonOnWebServerAdmin. You have got to have ProtonOnWebServerAdmin running on a Tomcat server on your local machine for it to actually process the request.
If you're using anything else - make sure that repository knows how to handle the request.

No Cache - HTML5 - Resource fetch failed (4)

i want to have absolute no cache in browser(chrome) for my site. i want to solve this with a manifest file, because metatags show no effect.
here my solution:
in html:
<html manifest="cache.manifest">
in my cache.manifest file:
CACHE MANIFEST
#Cache manifest version 1.0
CACHE
#no cache
NETWORK
*
and the error in the chrome log:
Creating Application Cache with manifest http://localhost/editor-xampp/cache.manifest
Application Cache Checking event
Application Cache Downloading event
Application Cache Progress event (0 of 3) http://localhost/editor-xampp/CACHE
Application Cache Error event: Resource fetch failed (4) http://localhost/editor-xampp/CACHE
did anybody have a solution for this?
and what means: Resource fetch failed (4)?
thx for ur help!
The CACHE and NETWORK line was assumed as paths to the resources to be cached.
You need to add a colon ':' after CACHE and NETWORK to indicate that they are sections.
The error event fires when:
1) Manifest is not Available
The manifest returns a 410 or 404 HTTP, the attempt to contact the manifest is terminated.
2) Referencing Page Failed to Download
The page attempting to contact the manifest experiences a transmission error.
3) Fatal Error While Downloading Manifest Contents
A file listed in the manifest encounters an error while downloading.
4) Manifest Changes During Update
The manifest changes during an update process (in this case the manifest is contacted again to attempt another update).