Forum Discussion
Reference iFile inside CSS file - Is it possible?
I suspect I'm missing something (...and I don't know a lot about CSS, so it's quite likely... ;), but would the file that the CSS requires be requested by the agent/browser? If so, could you put in another "if" statement in your iRule? (or better still, an "elseif" statement) You can then include the reference to this file ("<ifile_jpg>.jpg") in your css file.
Taking your piece of code, something along the lines of this:
if {[URI::basename [HTTP::uri]] ends_with "file-from-css.jpg"} {
HTTP::respond 200 content [ifile get <ifile_jpg>.jpg]
}Hope this helps.
This is a duplicate thread from Op. The other thread is solution provided.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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
