Firefox and IE: corrupted data when retrieving from cache

I have a server request that looks like this:

http://localhost/Combine.aspx/flag/file1.js,file2.js,file3.js

I also tried this:

http://localhost/Combine.aspx/flag/value/file1.js/file2.js/file3.js

It simply merges the three files that it gave: this works great.

At the first request of Firefox, the page displays correctly. When the page refreshes again, the content is as follows:

        `I %&/m {J J  t  `$     iG#) *  eVe]f@ 흼  {   {  ; N'

In this case, the server does not receive a request, the file is extracted only from the firefox cache, as far as I can tell.

If I force a page refresh using Control-F5, the page looks fine again.

Here is the request and response (in firebug) with Control-F5 (works):

answer

Cache-Control   public
Content-Type    application/javascript; charset=utf-8
Content-Encoding    gzip
Expires Sun, 26 Feb 2012 02:57:26 GMT
Last-Modified   Fri, 07 Jan 2011 21:08:54 GMT
Etag    CLYvZwbFmainWEMi8h-6x-zNEIQ1
Vary    Accept-Encoding
Server  Microsoft-IIS/7.5
Set-Cookie  auth=longstring; path=/
X-AspNet-Version    2.0.50727
X-Powered-By    ASP.NET
Date    Thu, 03 Mar 2011 02:57:26 GMT
Content-Length  918

Inquiry

Host    localhost
User-Agent  Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.14) Gecko/20110218 Firefox/3.6.14
Accept  text/html,application/xhtml+xml,application/xml;q=0.9,*/;q=0.8
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive  115
Connection  keep-alive
Cookie  auth=longstring
Pragma  no-cache
Cache-Control   no-cache

Same with just F5 (doesn't work):

answer

Cache-Control   public
Content-Type    application/javascript; charset=utf-8
Content-Encoding    gzip
Expires Sun, 26 Feb 2012 02:57:26 GMT
Last-Modified   Fri, 07 Jan 2011 21:08:54 GMT
Etag    CLYvZwbFmainWEMi8h-6x-zNEIQ1
Vary    Accept-Encoding
Server  Microsoft-IIS/7.5
X-AspNet-Version    2.0.50727
X-Powered-By    ASP.NET
Date    Thu, 03 Mar 2011 03:01:31 GMT
Content-Length  1533

Inquiry

Host    localhost
User-Agent  Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.14) Gecko/20110218 Firefox/3.6.14
Accept  text/html,application/xhtml+xml,application/xml;q=0.9,*/;q=0.8
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive  115
Connection  keep-alive
Cookie  auth=longstring

, , - Content-Length (, , ), , .

?

Edit:

IE8, . ( visual studio).

, URL- , . , , , Firefox.

, :

Expires ( URL-), .

2:

, Expires, ETag . , ETag .

+3
1

- IIS. IIS ASP 4.0 Classic, .

0

Source: https://habr.com/ru/post/1795926/


All Articles