The Slim Framework support forum has moved to This Tender forum is no longer maintained or monitored.

Resource name processing for browser cache (Beginner)

xxxcs's Avatar


08 Jun, 2013 11:14 AM

Hi slim framework users,

I am trying to bundle my cacheable resources to one file like


in which I load and include all files (in this case javascript).

This already works. My aim is to reduce the number of requests as far as possible.

This file automatically gets a version identification like: /js/all.js.1234.php
I submit this url to my template engine afterwards.
This works, too - in my document footer the URL will be placed into the script tag as src attribut value.

I then created a rewrite rule in my .htaccess file to cut off the version number when the file is requested but this is not working because the request is handled as 404 "notfound" problem by slim framework. Of course, in my understanding slim framework somehow sits on top of .htaccess and catches all unkown resources.

A rule like this
RewriteRule ^(.+)\.(js|css).([0-9]+)\.(php)$ $1.$2.$4
will not be processed.

What are my alternatives now? Is it possible to exclude slim from handling js and css resources? Is it possible to exclude directory paths?

Thank you very much in advance. Every help is appreciated! :-)

Best Regards

Showing page 2 out of 2. View the first page

  1. 31 Posted by livikogi on 19 Oct, 2016 03:50 AM

    livikogi's Avatar

    Need to know how to clear browser cache.

  2. 32 Posted by bilal.tsp on 31 Oct, 2016 06:05 PM

    bilal.tsp's Avatar

    witness some plastic surgery gone wrong for most of the celebrities of the world and their before and after effects happen to them.

  3. 33 Posted by alh on 24 Nov, 2016 10:07 AM

    alh's Avatar

    I totally agree with you because you are on right track. How To Get Your Ex Boyfriend Back Fast

  4. 34 Posted by lewismichael230... on 25 Nov, 2016 10:39 AM

    lewismichael2301's Avatar

    good Sports activities, Documentaries, and Music. This is definitely where Vidmate Apk comes in. best.

  5. 35 Posted by shoreydaniel201... on 19 Dec, 2016 09:35 AM

    shoreydaniel2012's Avatar

    good this article would definitely help you in downloading and install an application like IMO messenger which is speedy, quick a nice.

  6. 36 Posted by sam on 18 Feb, 2017 11:47 AM

    sam's Avatar

    good Aptoide is available in 17 languages which offers a multi-lingual keep also it is not offered on Apple app store. Men don't be nice.

  7. 37 Posted by wert on 06 Mar, 2017 07:51 AM

    wert's Avatar

    good from the below link. When after the download adequate to amuse customers from various best.

  8. 38 Posted by shikar on 21 Apr, 2017 07:49 AM

    shikar's Avatar

    At the point when the web page loads up, tap on the UP bolt if you obtain this message, it is anything however difficult.

  9. 39 Posted by smyan on 30 Apr, 2017 09:57 AM

    smyan's Avatar
  10. 40 Posted by smyan on 30 Apr, 2017 09:58 AM

    smyan's Avatar
  11. 41 Posted by smyan on 30 Apr, 2017 09:59 AM

    smyan's Avatar
  12. 42 Posted by smyan on 30 Apr, 2017 10:02 AM

    smyan's Avatar
  13. 43 Posted by smyan on 30 Apr, 2017 10:04 AM

    smyan's Avatar
  14. 44 Posted by smyan on 30 Apr, 2017 10:07 AM

    smyan's Avatar
  15. 45 Posted by smyan on 30 Apr, 2017 10:15 AM

    smyan's Avatar
  16. 46 Posted by smyan on 30 Apr, 2017 10:25 AM

    smyan's Avatar
  17. 47 Posted by lobebowi on 02 May, 2017 12:07 PM

    lobebowi's Avatar

    How we can find that our browser history is going to be fulled?

  18. 48 Posted by cokubafo on 03 May, 2017 06:27 AM

    cokubafo's Avatar

    I load this script and transfer all files into it.

  19. 49 Posted by copufine on 04 May, 2017 06:02 AM

    copufine's Avatar

    Need to find the directory of this book.

  20. 50 Posted by nqvs on 06 Jun, 2017 08:17 AM

    nqvs's Avatar

    I am having troubles with browser caches. Pure Natural Healing by Master Lim

  21. 51 Posted by bour on 07 Jun, 2017 07:48 AM

    bour's Avatar

    Browser Cache is really difficult to handle. Check out [this page](

  22. 52 Posted by finch on 16 Jun, 2017 10:32 AM

    finch's Avatar

    domain names are being set up or purchased on the net in order the customer's trouble.It contains numerous links.

  23. 53 Posted by Rammy on 14 Aug, 2017 02:09 PM

    Rammy's Avatar
  24. 54 Posted by Yogi@buyschools... on 16 Aug, 2017 09:55 AM

    Yogi@buyschoolsupplytips's Avatar

    Hi, I have read your posts for several times. Really love them. Hope there will be more good posts here!

  25. 55 Posted by Fahad@besterpma... on 17 Aug, 2017 07:48 AM

    Fahad@besterpmanufacturer's Avatar

    Nicely presented information in this post, I prefer to read this kind of stuff.

  26. 56 Posted by podufiqi on 28 Sep, 2017 06:18 AM

    podufiqi's Avatar

    You can put rules in your website control panel in .htmaccess file.

  27. 57 Posted by (anonymous) on 28 Dec, 2017 06:53 AM

    (anonymous)'s Avatar

    I also have some problem with formatting but now it is solve. Woman Men Adore Reviews

  28. 58 Posted by elayna2 on 29 Dec, 2017 07:18 AM

    elayna2's Avatar

    Sometime browser cache takes lot of memory. You should click to find more

  29. 59 Posted by Owais @ Makkah ... on 28 Sep, 2018 07:24 AM

    Owais @ Makkah Haj Corporation's Avatar

    Excellent stuff from you man. I’ve read your things before and you are just too awesome. I adore what you have got right here. You make it entertaining and you still manage to keep it smart. This is truly a great blog. Thanks for sharing.

    <p><a href="">Book Best Umrah Package 2018 -</a></p>

  30. 60 Posted by Joseph E Gleaso... on 30 May, 2019 11:17 AM

    Joseph E Gleason's Avatar

    Excellent stuff from you man. I’ve read your things before and you are just too awesome. I adore what you have got right here. You make it entertaining and you still manage to keep it smart. This is truly a great blog. Thanks for sharing.

    <p><a href="">Visit For US Tenders</a></p>

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac