Commit 225065eb authored by Davide Aprea's avatar Davide Aprea
Browse files

fix browser cache issue

parent d426f513
......@@ -12,16 +12,9 @@ use View;
class Stresstest extends MetaGerSearch
{
public function index(Metager $metager)
public function index(Request $request, MetaGer $metager, $timing = false)
{
return redirect("admin/stress/search?eingabe=test" . rand(), 301);
}
public function search(Request $request, MetaGer $metager, $timing = false)
{
if(empty($request->input('eingabe'))) {
return redirect("?eingabe=test" . rand(), 301);
}
$request->merge(["eingabe" => rand()]);
$metager->setDummy(true);
$metager->setAdgoalHash(true);
parent::search($request, $metager, $timing);
......
......@@ -193,8 +193,7 @@ Route::group(
});
Route::post('service-desk', 'ServiceDesk@webhook');
Route::get('stress', 'Stresstest@index');
Route::get('stress/search', 'Stresstest@search');
Route::get('stress/search/verify', 'Stresstest@search')->middleware('browserverification', 'humanverification');
Route::get('stress/verify', 'Stresstest@index')->middleware('browserverification', 'humanverification');
});
Route::get('settings', function () {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment