首页 \ 问答 \ 如果文件被服务器gzip压缩,则ajax内容是否被gzip压缩(Is ajax content gzipped if the file is gzipped by server)

如果文件被服务器gzip压缩,则ajax内容是否被gzip压缩(Is ajax content gzipped if the file is gzipped by server)

我只是想知道在服务器上激活gzip时,ajax调用是否也会被gzip压缩? 我不知道如何测试它。


I am just wondering if when gzip is activated at the server, will ajax calls be gzipped too? I don't know how to test it.


原文:https://stackoverflow.com/questions/17880662
更新时间:2023-11-14 10:11

最满意答案

你可以用<div>包装表格吗?

这种方式div控制滚动和表是自由的去它自己的方式。


Can you wrap the table in a <div>?

This way the div controls the scrolling and the table is free to go it's own way.

相关问答

更多
  • Vue已经内置了一个v-cloak指令,你只需要添加相关的css类: [v-cloak] { display: none; } 然后将其应用于您的元素,如下所示:
    {{message}}
    这里是JSFiddle: https ://jsfiddle.net/2jbe82hq/ 如果您在该小提琴中移除了v-cloak ,则会在实例安装之前看到胡须{{message}} 。 如果要在从服务器检索数据时显示loader ,那么将一个布尔标志与v-if以显示并隐 ...
  • 我适合学vue.js吗[2022-08-01]

    看了你的头像我认为你可以学。 但没有太大必要深入学习, 因为你知道的,前端的变化太快, 我现在还在用easyui。。。。。
  • 作为Vue它是客户端并且在服务器方面是laravel你不能以这种方式实现。 但是你可以在渲染路线上做这样的事情: 创建一个vue方法 goto_route: function (param1) { route = '{{ route('yournamedroute', ['yourparameter' => '?anytagtoreplace?']) }}' location.href = route.replace('?anytagtoreplace?', param1) } 现 ...
  • 除了多体技巧之外,还需要使用带有tbody标签的is属性来实例化组件,这样就不会有合法的组件标签。 new Vue({ el: "#foo", components: { componentName: { props: ['first'], template: '#cn-template' } } });