Questions tagged [static-files]

Static-files are ones that don't get amended during runtime. This could be a HTML file that's served up by a web server.

769 questions
0
votes
1 answer

Can not get statics files

I am trying to add Jquery-ui datetime picker in my express js application but I got a 404 error.

Date:

Jose Osorio
  • 911
  • 2
  • 12
  • 25
0
votes
1 answer

How to access physical file in OrchardProject?

I have a blog that is using the OrchardProject CMS. One thing I noticed is that if I add a file to the root of my website, and access it via www.example.com/test.html, I get a 404 error. Does OrchardProject have a restriction on this?
User456789
  • 397
  • 1
  • 3
  • 16
0
votes
2 answers

How can I route to / serve static files with page.js and Apache?

I have a router set up with page.js that routes an index page (at '/'), project pages (at '/projects//' ), and static (image) files. It looks, basically, like this: JavaScript init: function () { page.base('/'); // IndexPage …
0
votes
1 answer

App Engine Static Files Path

I have a strange problem with App Engine in Python. My css files aren't found (404 error), because under some URLs the path to static files is not found. My app.yaml file looks like this: application: my-app version: 1 runtime:…
box
  • 4,450
  • 2
  • 38
  • 38
0
votes
1 answer

Django and apache

I have configured my django application on webfaction, and it is working fine as of now. I wanted to know how to serve my static and media files on apache. Django has a development server which serves these files. I had initially setup apache on my…
Uma
  • 689
  • 2
  • 12
  • 35
0
votes
1 answer

Cherrypy, serving static files takes a lot of time when page opened in more than one browser, files are never loaded from cache

I'm using Cherrypy 3.6.0 framework. I have problem with long time loading pages (serving static files takes a lot of time) when I open page in more than one browser. In that case, for example, bootstrap.min.css file which has 120kB can load 5-10…
0
votes
1 answer

My iisnode setup wont serve the static files

What is wrong with my setup? have in mind I use express. web.config file :
drizo
  • 267
  • 6
  • 14
0
votes
2 answers

can't seem to get static route with kraken.js

I'm trying to upgrade an existing express site to use kraken.js I've got my dynamic pages loading ok (so far), but I can't seem to serve static files. Looking at the example, pages, it seems simple enough that I just have to add "middleware": { …
pedalpete
  • 21,076
  • 45
  • 128
  • 239
0
votes
1 answer

NODEJS and HEROKU : I can't serve the static files once the server is deployed

ok, I have the simple server which is the following setup: var port = process.env.PORT || 8080; var server = http.createServer(app).listen(port); process.env.PWD =…
drizo
  • 267
  • 6
  • 14
0
votes
1 answer

Nginx only partially serves static files for django app

First i want to state that i have read and tried solutions from all SO questions i found on the subject. Nothing helped, but also my issue is quite different than usual one. I have django project which i have installed on my dev computer where it…
4rlekin
  • 748
  • 5
  • 16
0
votes
1 answer

Is it possible to route only specific static files in MVC?

There is an answer to similar question. But I don't want to route ALL existing files (RouteExistingFiles = true) and then ignore all of the types I do not need. Can I be more precise with MVC or IIS settings telling it my intentions?
Pavel Voronin
  • 13,503
  • 7
  • 71
  • 137
0
votes
1 answer

NodeJS handle static files faster when internet is down

I observed a wierd behavior on my NodeJS server running on my localhost (my macbook). Initially I have my wifi on (Internet is ON), then I send a request to my server GET /jobHistory -> All the request to static files are logged (using morgan JS),…
HenryNguyen
  • 1,153
  • 1
  • 10
  • 8
0
votes
1 answer

can you set cookies with a StaticFileHandler in tornado?

Is it possible to have torando.web.StaticFileHandler set a cookie on the client's browser every time a certain static file is downloaded? Do I have to write my own handler? I can't seem to find the answer in the docs.
WeaselFox
  • 7,220
  • 8
  • 44
  • 75
0
votes
1 answer

ExpressJS 4.0 Background Image CSS Mime-Type Set to Text

Ok, I figured out a solution for my problem but I would like to know if anyone can help me understand why this happened. My app.js has: app.use(express.static(__dirname + '/public')); and static files are served as expected. Except, when I tried…
paniclater
  • 903
  • 1
  • 12
  • 18
0
votes
1 answer

Logging static file access to Eclipse console in Google AppEngine DevServer

Is it possible to have the AppEngine dev server output a quick log message to the eclipse console every time it serves a static file? For example, if my website loads "background.gif" (as a static file from the file system), I would like to see a…
Markus A.
  • 12,349
  • 8
  • 52
  • 116