Welcome Guest, Not a member yet? Register   Sign In
(Solved) Simple cache question
#10

[eluser]Eric Cope[/eluser]
The php scripts and images were behind the htaccess which prompted the basic authentication process most browsers support. It wasn't elegant, but it worked for my application.

I had a new idea. Browsers only cache images and html output. You could setup a part of your url like this.
Code:
http://yoururl.com/index.php/imageHandlingController/Function/image.jpg

Then, using mod_rewrite, rewrite image.jpg to image.php, which is a php file designed to authenticate a user and then forward on image.jpg.

That might work. It would take some experimenting. I would experiment outside codeIgniter so you are not fighting CI and Apache and your browser.


Messages In This Thread
(Solved) Simple cache question - by El Forum - 07-31-2008, 11:24 PM
(Solved) Simple cache question - by El Forum - 08-01-2008, 12:05 AM
(Solved) Simple cache question - by El Forum - 08-01-2008, 11:30 AM
(Solved) Simple cache question - by El Forum - 08-01-2008, 03:20 PM
(Solved) Simple cache question - by El Forum - 08-01-2008, 03:24 PM
(Solved) Simple cache question - by El Forum - 08-01-2008, 08:56 PM
(Solved) Simple cache question - by El Forum - 08-01-2008, 09:40 PM
(Solved) Simple cache question - by El Forum - 08-02-2008, 01:01 PM
(Solved) Simple cache question - by El Forum - 08-02-2008, 07:51 PM
(Solved) Simple cache question - by El Forum - 08-03-2008, 10:29 AM
(Solved) Simple cache question - by El Forum - 08-03-2008, 03:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB