1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AWSなどbitnamiで環境を整えたときにjavascriptがhtmlに展開される

Posted at

概要

下記のコードが

index.html
<script src="hoge.js"></script>

ブラウザで見ると下記のようになっている。

index.html
<script><![CDATA[
console.log("hoge")
]]></script>

開発用などのサーバでこれが有効だと
javascript の変更が反映されるまで少し時間がかかって面倒い。

原因

bitnami の用意する httpd.conf に書かれた下記の中にあるっぽい。

httpd.conf
Include conf/pagespeed.conf
Include conf/pagespeed_libraries.conf

パフォーマンスがいらないならコメントアウトすると良い。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?