【问题标题】:Apache + Centos 6.6 caching javascriptApache + Centos 6.6 缓存 javascript
【发布时间】:2015-10-01 22:10:45
【问题描述】:

我遇到了与此处讨论的相同的问题:Apache caching javascript assets?。但是,就我而言,问题仍然存在。

宿主 windows 8.1

流浪客:Centos 6.6 32bits

我在/etc/httpd/conf/httpd.conf: 中取消了这些行的注释:

EnableMMAP off
EnableSendfile off

重启 Apache

但问题仍然存在。

我的更改没有出现,特殊字符被添加到文件末尾。

谢谢!

【问题讨论】:

    标签: javascript apache vagrant virtual-machine centos6


    【解决方案1】:

    问题解决了

    问题: 我正在使用 Windows host 中的 sublimetext2 编辑我的文件,并使用 Windows 行结尾 保存这些文件 然后 linux guest 提供了结尾错误的 js 文件

    解决方案: 我在 sublimetext2 中更改了以 unix 结尾的行 Fixing Sublime Text 2 line endings?

    谢谢

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-08-10
      • 1970-01-01
      • 2015-10-17
      • 1970-01-01
      • 2012-04-07
      • 2015-03-14
      • 2016-05-18
      • 2015-04-13
      相关资源
      最近更新 更多