mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-30 08:52:05 +08:00 
			
		
		
		
	update: add etag
This commit is contained in:
		| @@ -48,9 +48,13 @@ class ShadowsocksTidalabController extends Controller | ||||
|                 'secret' => $user->uuid | ||||
|             ]); | ||||
|         } | ||||
|         $eTag = sha1(json_encode($result)); | ||||
|         if ($eTag === $request->header("IF-NONE-MATCH")) { | ||||
|             abort(304); | ||||
|         } | ||||
|         return response([ | ||||
|             'data' => $result | ||||
|         ]); | ||||
|         ])->header('ETag', $eTag); | ||||
|     } | ||||
|  | ||||
|     // 后端提交数据 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user