Closed DemeSzabolcs closed 2 years ago
I can't reproduce locally on my PC.
https://user-images.githubusercontent.com/3228637/156813275-f728c8a6-56be-4db6-ad45-d6f7e7b33087.mp4
Is there more to it? Domain names usage?
That's strange. I used the Software as a Service recipe, but I was able to reproduce the error with the Blog recipe too.
I'm sure that this is a bug because I was able to reproduce it on a completely different PC.
Could you please share a GIF screenshot?
There's pretty much nothing in that ResponseCompression module either than we enable the ASP.Net middleware.
You are right, may be there's a caching issue
Sometimes it doesn't give a content encoding error, instead displays random characters, as you can see in the gif. I reproduced this after cleaning browser caches and cookies (Chrome and Firefox) and on a different computer.
I could repro ;)
And if in place of /tenant1
I add an ending slash /tenant1/
it works
And seems to work if I run the app from the command line not from Visual Studio
bin/debug/net5.0/orchardcore.cms.web.exe
So seems to be related to the hot reload feature under VStudio, after doing the following as commented here https://github.com/dotnet/aspnetcore/issues/32767#issuecomment-975583962 it was working.
Can confirm that the injection of the scripts for the hot reloading feature is what triggers this. Had to rip it out completely to get a working solution back. I.e. go specifically into Tools -> Options -> Debugging ->.NET / C++ Hot reload and disable all the server-side C# hot reloading features altogether in addition to everything hot-reloading related under Tools -> Options -> Projects & Solutions -> ASP.NET Core.
Added a comment to follow https://github.com/dotnet/aspnetcore/issues/32767#issuecomment-1059680740
I'm using Visual Studio 2022 17.1.0 and I can't repro this when debugging with IISExpress and Hot Reload enabled. Will try different things and report here.
I get the same result when debugging in Visual Studio 2022 with Kestrel.
I'm using Version 17.0.5, will try to upgrade tomorrow ;)
Me too when I'm using the first version of 2022 I'm facing some issues while running the app ;) but may be the issue related to an ASP.NET Core issue as @jtkech mentioned above
So in my case was caused by enabling Projects and Solutions > ASP.NET Core > CSS Hot Reload
Upgrading to Visual Studio 2022 17.1.0 fixed the issue
So can we close this if it's VS related? We could document this because one may spent many hours on issues that related to VS
Yes, what @jtkech said, solved it. Thanks!
Okay cool, thanks for confirming
Describe the bug
Enabling Response Compression on a different tenant other than the Default one causes content encoding error on that tenant's homepage.
To Reproduce
Steps to reproduce the behavior:
~/exampleTenant
). OR go back to the default tenant's Dashboard -> Configuration -> Tenants and click on the example tenant's View button.Expected behavior
Tenants should not have content encoding errors on the homepage after enabling Response Compression.