我有一个角度应用程序,它对服务器进行HTTP GET调用.它适用于Chrome和Firefox.但是,我发现IE缓存了GET响应,在我执行POST后,我需要调用相同的GET请求并获取新的更新响应,但IE会缓存它.我想禁用IE的缓存.我试过用了
'If-None-Match': '*'
Run Code Online (Sandbox Code Playgroud)
我的GET调用请求标头,但随后禁用所有内容的缓存.有没有办法只为IE有条件地做这件事?或者还有另一种方法可以禁用它吗?
我有一个表,我想知道如何限制<td>条目中显示的字符数,以便如果超过限制,则显示"...",可能允许用户单击它以进行扩展.
<table st-table="displayedCollection" st-safe-src="main.quizCollection" class="table table-striped table-condensed table-bordered" ng-show="main.tab === 'active'">
<thead>
<tr>
<th st-sort="Internal.quizName">Name</th>
<th st-sort="Internal.description">Description</th>
<th st-sort="Internal.dateCreated">Date Created</th>
<th st-sort="Internal.timesTaken">Times Taken</th>
<th>URL</th>
<th>View More</th>
<th>Copy</th>
<th>Export</th>
<th>Deactivate</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="quiz in displayedCollection | filter:'active': true">
<td>{{quiz.Internal.quizName}}</td>
<td>{{quiz.Internal.description}}</td>
<td>{{quiz.Internal.dateCreated}}</td>
<td>{{quiz.Internal.timesTaken}}</td>
<td><button class="btn btn-default" clip-copy="main.copyURL(quiz)"><i class="fa fa-share-square-o"></i></button></td>
<td><a href="#/view-more/{{quiz.$id}}" class="btn btn-info"><i class="fa fa-eye"></i></a></td>
<td><a href="#/copy/{{quiz.$id}}" class="btn btn-default"><i class="fa fa-clipboard"></i></a></td>
<td><button class="btn btn-default" ng-csv="main.export(quiz)" csv-header="main.csvHeader" lazy-load="true" filename="{{quiz.Internal.quizName}}.csv"><i class="fa fa-floppy-o"></i></button></td>
<td><button class="btn btn-danger" ng-click="main.deactivate(quiz)"><i class="fa fa-ban"></i></button></td>
</tr>
</tbody> …Run Code Online (Sandbox Code Playgroud)