I have deployed two app services
Windows
https://mysamplewinapp.azurewebsites.net/
Linux
https://mysamplelinuxapp.azurewebsites.net/
Going to https://www.giftofspeed.com/gzip-test/ and inputting the URLs in I can see that the Windows one GZIP is enabled, the Linux one GZIP is not enabled.
How do I get Linux app service to support Gzip compressed?
Newest
I carefully compared the differences between webapp deployed under windows and linux.
It is found that the webapp deployed under Linux has very little content in the Response Headers.
In windows.
In Linux.
Suggestion:
So we just need to add Content-Encoding: gzip in Response Headers, then we can solve the issue.
PRIVIOUS
We can enable gzip compression by code.
I don't know what language your webapp is written in. But there must be a way to achieve it through code or configuration files in the project. You need to search by google according to the code language, you can also tell me, I will help you solve it together.
Below test (NodeJS) wen can find my webapp in linux support Gzip compressed.
I have a nuxtjs project deployed in azure webapp linux environment.
I am new to nuxt, and create new demo then deploy it. So I think we can enable gzip compression by code.
So I seacrh gzip in my project.
Related
I have a problem, because I created NODEJS API and I have to deploy it on Microsoft IIS. I have never done this before. Is it possible to do? If yes, I will be very grateful if someone describes how to do this.
If you want to host node.js application, you should firstly install the node.exe and the a build of iisnode.
https://nodejs.org/en/#download
https://github.com/tjanczuk/iisnode
After installed the IIS nodes, you could set up samples, from the administrative command prompt call %programfiles%\iisnode\setupsamples.bat.
More details, you could refer to below article:
https://www.hanselman.com/blog/InstallingAndRunningNodejsApplicationsWithinIISOnWindowsAreYouMad.aspx
I don't think if that will help you but usually NodeJS don't need a server to be live unlike php or .NET so you can create a server on NodeJS itself and launched very easy .
also IIS used for statics content and .NET websites about 90% .
I'm investigating load times for my Angular app built in dotnet core 3.1 hosted on a Azure Linux web app and have noticed that the javascript files are not compressed:
I've read that by default Azure Web Apps should compress responses and I shouldn't have to do anything to enable this. However, as I am running Kestrel I don't think I can take advantage of server compression, is that correct?
If I can't use server compression I can use Response Compression, but wanted to check that this is the correct course of action? As the javascript files I'm mostly interested in are mostly static, would this middleware be compressing them every time or would it cache them?
Thanks
At my work we have a .NET web application that is hosted in Azure. We use TeamCity to build our application and Octopus to deploy the application to Azure. We've been noticing that our deployments have started to increase in duration so I've been looking at the Octopus logs and it appears that the duration is mainly due to the multitude of front-end files we are using. We have recently implemented React so we have the node_modules folder plus all the other .css and .js plugin files that our front-end uses.
Are there any strategies to deal with said files and reduce the burden on deployments? Open to crazy ideas like zipping or using Docker containers - anything to make the deployments scale better as our application gets larger.
Why not go with the hype and use webpack?
As opposed to other hypes.. this is practical and actually useful.
Image source: http://www.pro-react.com/materials/appendixA/
I am Using NAudio for getting MP3 file information as well merging 2 or more MP3 files. It works fine on localhost but when I publish the site on AZURE it throws error "NoDriver calling acmFormatSuggest"
I assume that you are trying to use something that is not installed on the machine in Azure - in your case it is ACM MP3 decoder. On a client Windows it can be pre-installed, but i do not think that server Windows can have it.
Also i suspect that something like that will not be allowed to run on Azure Web Apps (it looks like you are trying to use that).
So, i would suggest you to use Virtual Machine for that and install needed components here or use something software-based. I have found:
new Mp3FileReader(stream,wave=> new DmoMp3FrameDecompressor(wave))
It looks like it can be used in your case. Could you please try?
As Alex has said, it is because the MP3 codecs (both ACM and DMO) are not present on the server. Your options are to find a way to install them, or to use a fully managed MP3 decoder such as NLayer instead.
i have developed a simple webapp using socket.io and node.js and was wondering how i would deploy it to a server? My application uses an HTML file with a canvas element the user interacts with how would i deploy this, the css and the js files and the app.js file to the server?
thanks
In some hosting companies that support Node.js (like Nodejitsu and Heroku) you can deploy your static files as part of your application code. In other words, when you deploy your app both your code and static files (JS/CSS/Images) will be deployed.
The downside with this approach is that you cannot easily just change a CSS file like you can in a more traditional deployment where you can just FTP a new CSS file to the production server. You could bypass this if you host your CSS files somewhere else, though.
I don't have experience with AppFog but I suspect the same is true.
You have a 90 day free trial at Azure. Believe it or not but they have great support for node.js. Read more at http://www.windowsazure.com/en-us/develop/nodejs/