Forum Discussion
Xterminator89
Altocumulus
May 03, 2021Reference iFile inside CSS file - Is it possible?
Hello, I am developing an iRule, and I am stuck on a piece of code, where I should respond with a specific CSS iFile, which will substitute the backend resource. Within the CSS file is referen...
- May 03, 2021
Sorry, not sure if we can add ifile within ifile. We will keep this discussion open for others to comment.
But just a thought, why can't you look for an option to update current primary css file to add image file there. something like b64 encoded image?
https://stackoverflow.com/questions/17090571/is-there-a-way-to-set-background-image-as-a-base64-encoded-image
spalande
Nacreous
May 03, 2021yes, you can reference css ifile. Import the css file on F5 and use below code
<ifilename> = example.css
switch -glob [string tolower [HTTP::uri]] {
"*/css" {HTTP::respond 200 content [ifile get <ifilename>] "Content-Type" "text/css"}
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