The Slim Framework support forum has moved to http://discourse.slimframework.com. This Tender forum is no longer maintained or monitored.

Resource name processing for browser cache (Beginner)

xxxcs's Avatar

xxxcs

08 Jun, 2013 11:14 AM

Hi slim framework users,

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

/js/all.js.php

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
Julien

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.
    http://www.reviewprotocol.com/language-of-desire/

  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.
    http://awfulsurgery.com

  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. http://vidmatedownloadz.com/vidmate-apk-download-app-free-for-android 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 https://imoappz.com/imo-apk-download-install-for-android-free-video-chat 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 http://iaptoideapkdownload.com/aptoide-for-ios-free-iphone-ipad-download 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 https://mobdroapp.meta.watch/mobdro-not-working-android-fix/ 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 http://vsharedownloadpro.com 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.
    http://menobsession.com/

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

    copufine's Avatar

    Need to find the directory of this book.
    http://restorebatterylife.com/

  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](http://www.reviewshut.com/heartburn-no-more-review/)

  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 http://livenettvapk.org/live-nettv-ios-iphone/ 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.
    http://besterpmanufacturer.weebly.com/blog/5-top-problems-involved-in-erp-integratio

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

Generic

? 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