Coder Social home page Coder Social logo

Comments (7)

Taritsyn avatar Taritsyn commented on May 20, 2024 1

Additionally, this hotfix prevents the occurrence of strange error messages:

Category: HTML_PARSING_ERROR
Message: In the start tag <y> found invalid characters.
File: /
Line number: 2
Column number: 41
Source fragment:

Line 1: ������`�I�%&/m�{�J�J��t���`�$ؐ@��������iG#)�*��eVe]f�@�흼��{���{���;�N'���?\fd�l��J�ɞ!����…
Line 2: ��4-��� ��2r�G�!搱R����<^f1�����8,���F��Fn ��wP�z�W����I��    ��_�
------------------------------------------------^
Line 3: �.����������[�y|7N��[v?������ԅ�v�+�YN5̝g��g~k���� ����u��⨒����x����*xL��F���}Q͊�봝�M��U��y�V�O�…

Now, instead of it, displays a more understandable error messages:

Can not apply markup minification to text content, that was encoded in the 'gzip' format.

from webmarkupmin.

Taritsyn avatar Taritsyn commented on May 20, 2024 1

Hello, Sarif!

I recommend you to read the “At what point in the run-time process does IIS compress output?” discussion on Stack Overflow.

from webmarkupmin.

Taritsyn avatar Taritsyn commented on May 20, 2024

Hello, Kudoz83!

In WebMarkupMin 2.2.0 fixed this error.

Thanks for information!

from webmarkupmin.

5arif avatar 5arif commented on May 20, 2024

hi i get error

Can not apply markup minification to text content, that was encoded in the 'gzip' format.

in azure but work fine in my local server, i use 2.2.2 version in my mvc app <package id="WebMarkupMin.AspNet4.Mvc" version="2.2.2" targetFramework="net462" /> please help

from webmarkupmin.

Taritsyn avatar Taritsyn commented on May 20, 2024

Hello, Sarif!

You deleted own post? Perhaps you have had a problem with the quotes?

from webmarkupmin.

5arif avatar 5arif commented on May 20, 2024

yes i deleted it,. it already working ,. i add

dynamicCompressionBeforeCache="false"

in my web config i just wondering is it possible to handle it from code,.
is it possible to implement compression in json response,. ?

from webmarkupmin.

Taritsyn avatar Taritsyn commented on May 20, 2024

is it possible to implement compression in json response,. ?

@5arif Add a CompressContent attribute to the action method, that returns JSON data.

Also I recommend you to upgrade to version 2.4.0 (there were solved many problems related with HTTP compression).

from webmarkupmin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.