mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
page speed score
This commit is contained in:
parent
ddfe51c75c
commit
bc43902beb
2 changed files with 5 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ Cloud Commander [.
|
||||
PageSpeed Score of [97](https://developers.google.com/speed/pagespeed/insights#url=http_3A_2F_2Fcloudcmddemo.cloudfoundry.com_2F&mobile=false "score") (out of 100).
|
||||
|
||||
Benefits
|
||||
---------------
|
||||
|
|
|
|||
|
|
@ -194,7 +194,10 @@ CloudServer.generateHeaders = function(pName, pGzip){
|
|||
else lType='text/plain';
|
||||
|
||||
return {
|
||||
'Content-Type': lType+'; charset=UTF-8',
|
||||
/* if type of file any, but img -
|
||||
* then we shoud specify charset
|
||||
*/
|
||||
'Content-Type': lType + (lType.indexOf('img')<0?'; charset=UTF-8':''),
|
||||
'cache-control': 'max-age='+(31337*21),
|
||||
'last-modified': new Date().toString(),
|
||||
'content-encoding': pGzip?'gzip':'',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue