Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

firefox doesn't respect 304 http status code

  • 2 trả lời
  • 1 gặp vấn đề này
  • 3 lượt xem
  • Trả lời mới nhất được viết bởi mehdyhaghy

more options

I have a performance issue with our website in firefox, the problem is firefox transfers files when server send 304 response. on a heavy page like ours, this will cause firefox to transmit 8 KB of javascript while chrome downloads only 196 Bytes. the difference is drastic on pages which heavily use javascript libraries, when users refresh the page.

sample url  : https://cdt.irslogics.com/Scripts/common.js?v=1.03

screenshots of reload url (304 status code) in firefox and chrome: https://ibb.co/dZaAKa https://ibb.co/mbQXXv

I have a performance issue with our website in firefox, the problem is firefox transfers files when server send 304 response. on a heavy page like ours, this will cause firefox to transmit 8 KB of javascript while chrome downloads only 196 Bytes. the difference is drastic on pages which heavily use javascript libraries, when users refresh the page. sample url : https://cdt.irslogics.com/Scripts/common.js?v=1.03 screenshots of reload url (304 status code) in firefox and chrome: https://ibb.co/dZaAKa https://ibb.co/mbQXXv

Tất cả các câu trả lời (2)

more options

If that URL is used when run through http://www.jslint.com/ it fails with errors.

Have you run the code through this : https://developers.google.com/closure/compiler/?csw=1

What about the html is it set up for the 304 error ?

Please let us know if this solved your issue or if need further assistance.

more options

304 is not an error, it's "Not Modified" http status code sent from server to avoid transmission of cached files.

above file is just a sample file to show the transfer issue. you can basically test this on any html page with large js files. load the page, refresh it again and check transfer size for files with status 304.