Is the Google AppEngine applicable for all URL requests?

This is in reference to the next question ..

Disable case sensitive urls in Google App Engine

I am trying to use appengine as a CDN. There is a lot of code where JavaScript and CSS are available on pages without regard to case sensitivity. My application file looks like below ..

 handlers:
- url: /themes/([^A-Z]+)
  static_files: themes/\1
  upload: themes/.*
- url: /.*
  handler: tolowercase.py

      

The problem is, I want to make the even themes case insensitive. So what should be changed in tolowercase.py?

Also I didn't understand the first solution as I am not aware of adding middleware to appengine (please forgive my ignorance here)

0


source to share


1 answer


It is not possible to serve static files with different capitalizations than they were loaded - you will need to load them as application data and serve them through your application.



Eliminating your application to use correct capitalization throughout would be much better.

+1


source







All Articles