We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
source file and cache is on locale. but i have setting amazon CloudFront.
when direct request 'https://xxxx.cloudfront.net/product/1/Soft-Axami_1_6607c41abda77.jpg' it work.
but i want use glide so i created router like this:
#[Route('/image/read', name: 'image.read')] public function readImage(Request $request, ConfigurationService $configurationService) { try { $domain=$configurationService->getSetting('SYSTEM_IMAGE_DOMAIN',true); if(!$domain){ $request->getSchemeAndHttpHost(); } $path = $request->query->get('path'); $source_dir = $this->getParameter('kernel.project_dir') . '/public'; $server = ServerFactory::create([ 'source' => new Filesystem(new LocalFilesystemAdapter($source_dir)), 'response' => new SymfonyResponseFactory(), 'cache' => $source_dir . '/cache', 'driver' => 'imagick', ]); $query = $request->query->all(); unset($query['path']); return $server->getImageResponse($path, $query); } catch (\Exception $e) { return new RedirectResponse(''); } }
i want kown how can i use amazon CloudFront return cache file
The text was updated successfully, but these errors were encountered:
No branches or pull requests
source file and cache is on locale. but i have setting amazon CloudFront.
when direct request 'https://xxxx.cloudfront.net/product/1/Soft-Axami_1_6607c41abda77.jpg' it work.
but i want use glide so i created router like this:
i want kown how can i use amazon CloudFront return cache file
The text was updated successfully, but these errors were encountered: