How to cache an uploaded file?

Hi

I have created a plugin for image upload. I have created a new folder for images and upload them to that folder using Symfony\Component\HttpFoundation\File\UploadedFile library.

Unfortunately, my plugin rejected They said „I had to reject the plugin again. Everything is ok apart from the circumstance, that all uploaded files were not cached. This will become a performance problem on the detail-page.“

I am displaying the images on the product detail page. How to cache these images? 

 

See attached Screenshot.

 

You sometimes want to overrule the Internet cache, for example to see changes you made to a webpage you just uploaded. On Refreshyourcache you can find tutorials on how to refresh the cache from your browser TellPopeyes.