Questions tagged [static-resource]

70 questions
1
vote
0 answers

Static resource management: is it feasible to combine resources upon request?

What are the performance differences between the following three, assuming they work in a semantic manner: and:
Lucas
  • 16,930
  • 31
  • 110
  • 182
1
vote
1 answer

How to define a static wpf ressource from c# project settings (properties) defined in another project

The following piece of code located in App.xaml defines a static application-wide resource, which I sucessfully binded to a listbox control.
1
vote
1 answer

spring boot error page with resource handlers

tl;dr: how to enable spring's ResourceUrlEncodingFilter for spring boot Error pages? (Question written while using spring boot 1.3.7.RELEASE and Spring Framework/MVC 4.2.4.RELEASE) Some background: We have a fairly standard spring boot/spring webmvc…
drobert
  • 1,230
  • 8
  • 21
1
vote
2 answers

How to Configure Servlet Mapping and Resource Handler in Spring MVC

I have created sample Spring MVC REST Maven project with following folder structure ResourceHandlerRegistry configuration as follows @Configuration @EnableWebMvc @ComponentScan(basePackages = "com.raju.spring_app") public class RootConfiguration…
1
vote
4 answers

spring mvc static resources failed to load

I am trying to use static resources in my sample spring mvc project, In my project I have created a theme under resources folder as shown in the picture. Then I have added the following 3 lines of code in spring-mvc-servlet.xml
ASR
  • 3,289
  • 3
  • 37
  • 65
1
vote
1 answer

Spring request routing

TL;DR: I'm writing a simple Tomcat/Spring/Freemarker webapp and seem to be having a lot of trouble getting Spring's DispatcherServlet to honor configuration. PLEASE NOTE: AFAICT this is not a duplicate of other questions since…
Jim Garrison
  • 85,615
  • 20
  • 155
  • 190
1
vote
1 answer

Why does Chrome DevTools say my static resource is explicitly non-cacheable while mapped with Spring's mvc:resources?

I'm using Spring MVC 4, and handle static resources as follow (cache for one year): I have an app.js file in my static folder. When launching an audit with the…
sp00m
  • 47,968
  • 31
  • 142
  • 252
1
vote
1 answer

Can I use UIPerformance grails plugin and host my static resources in another domain?

The UIPerfomance plugin is an easy way to speed up your web pages by applying some of the best practices rules from Yahoo performance team (like minifying, setting a far-future expires header, versioned images...) Unfortunately I didn't find a way…
fabien7474
  • 16,300
  • 22
  • 96
  • 124
1
vote
2 answers

How to edit/replace single file in SFDC static resources?

I have a static resource zip file in SFDC that contains images and css files used by Visualforce pages. How do you replace just a single image with a new one from the resource zip file? Do I need to upload the entire zip file again with the new…
XurajB
  • 820
  • 1
  • 14
  • 29
1
vote
2 answers

Spring controller mapping configuration and static resources

I have an issue with intercepting request to static resources by controller. Here is web.xml (part related with the problem): testing
Bananan
  • 613
  • 5
  • 19
0
votes
1 answer

How to configure InternalResourceViewResolver amd/or @Controller bean to deliver static resources?

I have created simple HelloWorld project from Spring MVC template in Spring STS. I found that there is a HomeController bean, which decides, which JSP to call and prepares information for it. As I see, this class associates HTTP request with it's…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
0
votes
1 answer

What does getStaticResourceURL() does in Liferay?

What is the role of the getStaticResourceURL() method? If I pass request.getContextPath() + mypath to it (without a timestamp), what it can change? If I pass some timestamp, what it can change additionally?
Dims
  • 47,675
  • 117
  • 331
  • 600
0
votes
2 answers

How to expose properties of a WPF DataTemplate?

I have a data template that I use in many pages, the data template contains a few buttons, I want to hide some of these buttons by triggers (I mean setting the IsEnabled Property of these buttons in the page where I use this DataTemplate). In other…
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
0
votes
1 answer

Static resource mapping in Spring3

My project is implemented in Spring3 and configuration is almost xml. Configuration of static resource mapping is like below: There is no problem when accessing /a/xxx.jpg but 404 Error is…
firia2000
  • 1,773
  • 5
  • 19
  • 20
0
votes
0 answers

Spring boot static resource with ResourceHandler while deploying on tomcat

I have followin project structure.. Now, I want load the static resources from resources/static/resources. I have tried to add following in my mvc configuration without any success. …
Prashant
  • 31
  • 7