Forum Discussion
frank_30469
Nimbostratus
Jun 12, 2014max image size
Hi,
Is there any way I can use an iRule to prevent an image to be returned to the client that is larger than for example 300KB?
Kevin_Davies_40
Nacreous
Jun 12, 2014The answer is yes. The problem is not the size limit but how you want to deal with the scenario. Since the client made the image request it is expecting a response from the web server and we have to deal with that.
We only know the image size when we see a response from the web server. Do we return a 404 not found to the client in this case or something else? A 404 response will give them a broken image icon. Or do you want some other desired outcome?
Is this for downloading files? or normal images?
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects