在onRouteRequest播放框架中过滤路由请求

时间:2015-05-28 16:56:47

标签: scala playframework

我是网络开发的新手。我在gtmetrix.com中测试了我的网站效果 他们给了我F因为我不能避免不好的要求。这些请求是我的公共资产,我想避免它们,当其他人想要访问这些路由时显示404错误

我认为一个解决方案是在函数onRouteRequest上过滤路由

<html ng-app="ionicApp">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">

  <title>Tabs Example</title>

  <link href="//code.ionicframework.com/nightly/css/ionic.css" rel="stylesheet">
  <script src="//code.ionicframework.com/nightly/js/ionic.bundle.js"></script>
</head>

<body>
<ion-header-bar align-title="center" class="bar bar-header bar-balanced">
  <div class="buttons">
    <i style="font-size:30px;" class='icon ion-chevron-left'></i>
  </div>
  <h1 class="title">Title!</h1>

</ion-header-bar>
<ion-content>
<div class="button-bar">
  <a class="button">Command1</a>
  <a class="button">Command2</a>
  <a class="button">Command3</a>
</div></ion-content>

</body>

</html>

好还是有解决方案?

0 个答案:

没有答案
相关问题